Linux BASH script for sending to radmon.org
9 years 9 months ago #713
by lp
Replied by lp on topic Linux BASH script for sending to radmon.org
Got everything connected and ready to test with the Arduino Mega + Dragino shield.
Should be possible to run a CURL command with the following url " http://radmon.org/radmon.php?function=submit&user=me&password=5555&value=32&unit=CPM" , but if I try this on a browser radmon returns: "Incorrect".
Is the radmon server working or am I missing something?
Should be possible to run a CURL command with the following url " http://radmon.org/radmon.php?function=submit&user=me&password=5555&value=32&unit=CPM" , but if I try this on a browser radmon returns: "Incorrect".
Is the radmon server working or am I missing something?
Please Log in or Create an account to join the conversation.
9 years 9 months ago #714
by mw0uzo
Replied by mw0uzo on topic Linux BASH script for sending to radmon.org
That should work, you probably have the password wrong. PM reminder sent.
Please Log in or Create an account to join the conversation.
9 years 9 months ago #715
by lp
Replied by lp on topic Linux BASH script for sending to radmon.org
Yes, I had the password wrong, forgot it was a different one from the login. Thanks mw0uzo.
Soon we will have this station in South Norway 24h day!
Soon we will have this station in South Norway 24h day!
Please Log in or Create an account to join the conversation.
- GandalfDerGraue
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 2
9 years 8 months ago - 9 years 8 months ago #966
by GandalfDerGraue
Replied by GandalfDerGraue on topic Linux BASH script for sending to radmon.org
Here is a shell script which is under GPL License, probably running on any linux shell (for example "bash" and others, even on "sh") but it requires also "cut" and "wget". It should run on almost any router (openWRT etc.), raspberry/ banana-pi and so on.
Just upload it to the target host from here:
The script won't need special access rights for webfrontend device access, so you can run it under almost any user on the system. If you use it to provide data from a serial device you'll of course need access rights for the serial tty your device is attached to.
Currently it supports devices that do output the radiation readings directly on serial console plus the uradmon.com device that gerates JSON output web page. If you have a device that won't work with the script please feel free to contact me and let's see if it can be integrated into the script. It is grown quite a bit but does not use much resources if running on small devices.
I hope you'll find it useful. Have a lot of fun!
Just upload it to the target host from here:
The script won't need special access rights for webfrontend device access, so you can run it under almost any user on the system. If you use it to provide data from a serial device you'll of course need access rights for the serial tty your device is attached to.
Currently it supports devices that do output the radiation readings directly on serial console plus the uradmon.com device that gerates JSON output web page. If you have a device that won't work with the script please feel free to contact me and let's see if it can be integrated into the script. It is grown quite a bit but does not use much resources if running on small devices.
I hope you'll find it useful. Have a lot of fun!
Last edit: 9 years 8 months ago by GandalfDerGraue. Reason: gzipped attachements won't work ;)
Please Log in or Create an account to join the conversation.
9 years 8 months ago - 9 years 8 months ago #974
by mw0uzo
Replied by mw0uzo on topic Linux BASH script for sending to radmon.org
Great to see it all working at last!
Does the attachment work if the file is zipped up? (I have also just added .sh as an allowed extension.)
Does the attachment work if the file is zipped up? (I have also just added .sh as an allowed extension.)
Last edit: 9 years 8 months ago by mw0uzo.
The following user(s) said Thank You: GandalfDerGraue
Please Log in or Create an account to join the conversation.
- GandalfDerGraue
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 2
9 years 8 months ago - 9 years 8 months ago #978
by GandalfDerGraue
Replied by GandalfDerGraue on topic Linux BASH script for sending to radmon.org
Hi Dan,
I had tried gzipped file before which did not work. I now uploaded uncompressed file (7kB size, that should still be OK, I hope) and now it did work with the extent ".sh". Normally I don't use such MS-DOS'ish name extensions, but at least uploading the file works now.
Gnu-zipped files as usually used in linux environments don't work with the ".gz" extent.
Thank you!
With kind regards,
Wolfgang
I had tried gzipped file before which did not work. I now uploaded uncompressed file (7kB size, that should still be OK, I hope) and now it did work with the extent ".sh". Normally I don't use such MS-DOS'ish name extensions, but at least uploading the file works now.
Gnu-zipped files as usually used in linux environments don't work with the ".gz" extent.
Thank you!
With kind regards,
Wolfgang
Last edit: 9 years 8 months ago by GandalfDerGraue.
Please Log in or Create an account to join the conversation.
Moderators: Gamma-Man
Time to create page: 0.208 seconds