Comments (9)
Probably a bit late to the game to answer the 2nd portion of your query now..,
But after just shifting from PDW to Pagermon myself and spending way more time than I probably should (in excess of probably 6hrs) getting it working flawlessly I too struck this and couldn't work out how to pipe the rtl_fm/multimon output to a background active process in a single step until I found pm2 supports .sh like bash. So I've got both auto-loading via pm2 and then saved to startup per the server install instructions. sudo pm2 start reader.sh (from client folder) and from pagermon root the normal sudo pm2 start server\process.json
from pagermon.
Yup - once the server is started, you need to create an API key in the admin panel under 'settings'.
That said, I'm getting errors on my install at the moment trying to navigate there - it seems the 'colorpicker' include is broken at the moment:
https://unpkg.com/[email protected]/dist/angularjs-color-picker.min.js
I'll switch to the non-minified include of that until unpkg fixes it :)
from pagermon.
And fixed :) Might wanna pull down the latest version if you're seeing nothing in the settings page.
So what you'll wanna do, is point to the server in your browser and login with the default credentials (admin / changeme), change the password through the 'reset password' page, then go to the settings page and right down the bottom is the API Key settings. Hit the plus sign to create a new key, then click 'generate' and it'll give you a nice long key that you can paste into the reader.
Lemme know if you have any trouble :)
from pagermon.
Good stuff 😄 hopefully all goes smoothly from here!
from pagermon.
Hmm not too sure - I haven't done any testing on my Raspi with the reader just yet. Perhaps run it with nohup or screen? Screen might be best, since you can jump into the screen session if you want to view the pretty coloured output.
from pagermon.
AWESOME! That was the trick. Thanks so much for this project. I was trying to do something very low level in this vein for a while but never got passed just piping everything out to /var/www/html/index.html.... so bad. just one huge file that had a header that auto reloaded the file every 5 minutes.... pagermon (now that I've got it running) is like a dream come true.... ;)
from pagermon.
One more quick question... What is the prefered method (in Raspbian) to lauch reader.sh to start at boot?
Adding the script to /etc/init.d/ doesn't seem to work. It starts 'rtl_fm | multimon-ng' but not the 'node' part... Any thoughts?
from pagermon.
Ha! I ended up doing tmux (same idea as screen basically) and closed the ssh session.
It should just run and run now. I will continue looking into ways to get the ENTIRE string of commands to execute on launch. Currently it's still just rtf_fm and multimon-ng that fire off. 'node reader.js' never seems to execute. I even made sure the path to the node was in my bashrc... weird.
from pagermon.
Just a thought - have you tried using nodemon? I dunno if it accepts piped inputs, if so might be a little more stable on boot :)
from pagermon.
Related Issues (20)
- Text bug HOT 2
- Raspberry 4 Installation Issues HOT 2
- Login issue on fresh install HOT 1
- Icons not displayed HOT 2
- Rasberry Pi, RTL-SDR V4 issue HOT 1
- High Memory Usage on Alias Admin page HOT 13
- Make Badge clickable HOT 1
- How to simply upgrade from old version 0.3.5-beta HOT 1
- Hide certain aliases from anonymous users
- Twitter ( X ) api dont work HOT 1
- Raspbain nodejs version 6 HOT 1
- Internationalization HOT 1
- Capcode heading still visible in Small mode
- SMTP with "after" is not sending after text/regex replacement
- Docker: node-pre-gyp info This Node instance does not support builds for Node-API version 6
- All New Messages are displayed on Filtered results HOT 2
- Error 502 HOT 2
- Cannot open webview HOT 3
- Self-serve password reset HOT 4
- Large database is incredibly slow to load HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagermon.