×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

[Mobindi] A mobile phone UI for indi setups

  • Posts: 167
  • Thank you received: 54
Hi
this is owesome

Can you help me with installation ?
This is what i get after "npm start"
odroid@odroid:~/mobindi$ npm start
 
> mobindi-backend@0.0.0 start /home/odroid/mobindi
> node dist/app.js
 
module.js:550
    throw err;
    ^
 
Error: Cannot find module '/home/odroid/mobindi/dist/app.js'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mobindi-backend@0.0.0 start: `node dist/app.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the mobindi-backend@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
 
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/odroid/.npm/_logs/2019-05-11T22_24_55_506Z-debug.log
odroid@odroid:~/mobindi$ 
4 years 11 months ago #39029

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 30
Hello

You must run :

npm install

Then :

npm run- script build

Then:

npm start

You'll need npm install & build in the ui dir as well
The following user(s) said Thank You: gehelem, dolguldur, Tom
4 years 11 months ago #39030

Please Log in or Create an account to join the conversation.

  • Posts: 167
  • Thank you received: 54
it works !
Thank you very much
4 years 11 months ago #39031

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 15
Hi,

1. Since mobindi is connecting to phd2, will mobindi give warning sound or notice when star lost occur in phd2?
2. How to update mobindi when new release come out?
3. Will npm autorestart after Pi reboot?

Thanks for the effort.

Regards,

Tom
Last edit: 4 years 11 months ago by Tom.
4 years 11 months ago #39032

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 15
Hi,

Also having this issue when start npm.

tom_astro@TomAstroPi:~/mobindi/ui$ npm start

> mobindi-frontend@0.0.0 start /home/tom_astro/mobindi/ui
> react-scripts-ts start

? We're unable to detect target browsers.

Would you like to add the defaults to your package.json? Yes

Set target browsers: >0.2%, not dead, not ie <= 11, not op_mini all

When specified, "proxy" in package.json must be a string.
Instead, the type of "proxy" was "object".
Either remove "proxy" from package.json, or make it a string.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mobindi-frontend@0.0.0 start: `react-scripts-ts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mobindi-frontend@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/tom_astro/.npm/_logs/2019-05-12T00_54_18_136Z-debug.log
tom_astro@TomAstroPi:~/mobindi/ui$ sudo npm start

> mobindi-frontend@0.0.0 start /home/tom_astro/mobindi/ui
> react-scripts-ts start

When specified, "proxy" in package.json must be a string.
Instead, the type of "proxy" was "object".
Either remove "proxy" from package.json, or make it a string.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mobindi-frontend@0.0.0 start: `react-scripts-ts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mobindi-frontend@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/tom_astro/.npm/_logs/2019-05-12T00_55_32_211Z-debug.log
4 years 11 months ago #39033

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 30
It seems to be using wrong libraries version. Did you issue npm install in base and ui dir ?
4 years 11 months ago #39037

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 30
Hi

1- phd2 panel will report the lost lock. But no notification, this is on my todo list !
2- to update mobindi, issue git pull and replay the build commands. Your settings will be preserved
3- there is no OS integration at all at that point, because i have been focusing more on the features rather than the install process. Tell me if you need assistance!

Pludov
4 years 11 months ago #39038

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 15
After many hours of troubleshooting, I managed to get it working. That is I can only issue the npm start command in /mobindi folder but not in /ui folder. Is this correct?

Regards,
Tom
4 years 11 months ago #39042

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 15

Hi Pludov,

Is there any way to auto start the npm server on the background without terminal open?

Regards,
Tom
4 years 11 months ago #39043

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 30
Yes. I think I'll release a build script to do all in a row :-)
4 years 11 months ago #39044

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 30
To automate the start, you can just add the following to /etc/rc.local

exec su -l -c "( cd ~/Astro/mobindi && exec npm start 2>&1 )" linaro

Adapt the path (~/Astro/mobindi) and the user (linaro).
4 years 11 months ago #39045

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 15

Works perfectly!!!!!!

Thanks a lot.
4 years 11 months ago #39060

Please Log in or Create an account to join the conversation.

Time to create page: 0.838 seconds