radmon.org API

More
6 years 2 months ago - 11 months 2 weeks ago #3953 by mw0uzo
radmon.org API was created by mw0uzo
radmon.org API

*** Please go to the last page in this thread for the latest API information ***


General structure of HTTP request
radmon.org?function=x&parameter1=a&parameter2=b&parameter3=c...
where x is the name of the function required and the parameters passed to radmon are a, b, c ...

e.g. for function 'submit' with parameters user, password, value and unit
https://radmon.org/radmon.php?function=submit&user=youruser&password=yourpassword&value=20&unit=CPM
Last edit: 11 months 2 weeks ago by Simomax.

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

More
6 years 2 months ago - 6 years 2 months ago #3954 by mw0uzo
Replied by mw0uzo on topic radmon.org API
Function
submit
Description
Submits a single reading in counts per minute to radmon.org
Parameters
user, password, value, CPM
user, password, value, CPM, datetime
Examples
https://radmon.org/radmon.php?function=submit&user=youruser&password=yourpassword&value=20&unit=CPM
https://radmon.org/radmon.php?function=submit&user=youruser&password=yourpassword&value=20&unit=CPM&datetime=
Notes
The unit should always be 'CPM'
The datetime parameter should be in a PHP parseable format. It is for uploading data that is stored due to intermittent network access.
Last edit: 6 years 2 months ago by mw0uzo.

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

More
6 years 2 months ago - 4 years 11 months ago #3955 by mw0uzo
Replied by mw0uzo on topic radmon.org API
Function
submitwithlatlng
Description
Submits a single reading in counts per minute with latitude and longitude position data to radmon.org
Parameters
user, password, value, CPM, latitude, longitude
user, password, value, CPM, latitude, longitude, datetime
Examples
https://radmon.org/radmon.php?function=submitwithlatlng&user=youruser&password=yourpassword&value=20&unit=CPM&latitude=53.542&longitude=-0.344
https://radmon.org/radmon.php?function=submitwithlatlng&user=youruser&password=yourpassword&value=20&unit=CPM&latitude=53.542&longitude=-0.344&datetime=
Notes
The unit should always be 'CPM'
The datetime parameter should be in a PHP parseable format. It is for uploading data that is stored due to intermittent network access.
Last edit: 4 years 11 months ago by mw0uzo.

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

More
6 years 2 months ago - 4 years 11 months ago #3956 by mw0uzo
Replied by mw0uzo on topic radmon.org API
Function
lastreading
Description
Gets the last reading for a station
Parameters
user
Examples
https://radmon.org/radmon.php?function=lastreading&user=mw0uzo
Last edit: 4 years 11 months ago by mw0uzo.

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

More
6 years 2 months ago - 6 years 2 months ago #3965 by mw0uzo
Replied by mw0uzo on topic radmon.org API
Function
getcombinedlistjson
Description
Gets all the current states of all the radmon stations.
Deserialise the result into a php array to access the data.
Array structure
[
users[], locations[], descriptions[], warninglevels[], alertlevels[], alertnenables[], links[], cpms[], dormants[], nrows[], conversionfactors[], time
]
links are links to the userpages.
nrows is an incrementing counter to make sure things haven't moved out of order.
time is the time the array was generated.
The rest are self-explanatory.

Examples
https://radmon.org/radmon.php?function=getcombinedlistjson
Last edit: 6 years 2 months ago by mw0uzo.

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

More
6 years 2 months ago - 6 years 2 months ago #3966 by mw0uzo
Replied by mw0uzo on topic radmon.org API
Function
showalerts
Description
Prints up all alerts over the past week
Examples
https://radmon.org/radmon.php?function=showalerts
Last edit: 6 years 2 months ago by mw0uzo.

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

Moderators: Gamma-Man
Time to create page: 0.277 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 59% Memory 18% Swap 19% CPU temp=56.9'C Uptime 8 Days