Welcome, Guest
Username: Password: Remember me

TOPIC: Linux BASH script for sending to radmon.org

Linux BASH script for sending to radmon.org 2 years 7 months ago #713

  • lp
  • lp's Avatar
  • OFFLINE
  • New Member
  • Posts: 5
  • Karma: 0
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 " radmon.org/radmon.php?function=submit&us...55&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?
The administrator has disabled public write access.

Linux BASH script for sending to radmon.org 2 years 7 months ago #714

  • mw0uzo
  • mw0uzo's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 895
  • Thank you received: 182
  • Karma: 23
That should work, you probably have the password wrong. PM reminder sent.
The administrator has disabled public write access.

Linux BASH script for sending to radmon.org 2 years 7 months ago #715

  • lp
  • lp's Avatar
  • OFFLINE
  • New Member
  • Posts: 5
  • Karma: 0
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!
The administrator has disabled public write access.

Linux BASH script for sending to radmon.org 2 years 5 months ago #966

  • GandalfDerGraue
  • GandalfDerGraue's Avatar
  • OFFLINE
  • New Member
  • Posts: 9
  • Thank you received: 2
  • Karma: 0
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:


File Attachment:

File Name: radmon.sh
File Size: 7 KB



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: 2 years 5 months ago by GandalfDerGraue. Reason: gzipped attachements won't work ;)
The administrator has disabled public write access.
The following user(s) said Thank You: mw0uzo, OM1AMJ

Linux BASH script for sending to radmon.org 2 years 5 months ago #974

  • mw0uzo
  • mw0uzo's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 895
  • Thank you received: 182
  • Karma: 23
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.)
Last Edit: 2 years 5 months ago by mw0uzo.
The administrator has disabled public write access.
The following user(s) said Thank You: GandalfDerGraue

Linux BASH script for sending to radmon.org 2 years 5 months ago #978

  • GandalfDerGraue
  • GandalfDerGraue's Avatar
  • OFFLINE
  • New Member
  • Posts: 9
  • Thank you received: 2
  • Karma: 0
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! :cheer:

With kind regards,
Wolfgang
Last Edit: 2 years 5 months ago by GandalfDerGraue.
The administrator has disabled public write access.
Time to create page: 0.690 seconds
Powered by Kunena Forum