radmon.org API

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

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: 4 years 2 months ago by mw0uzo.

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

More
4 years 2 months ago - 4 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: 4 years 2 months ago by mw0uzo.

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

More
4 years 2 months ago - 2 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: 2 years 11 months ago by mw0uzo.

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

More
4 years 2 months ago - 2 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: 2 years 11 months ago by mw0uzo.

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

More
4 years 2 months ago - 4 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: 4 years 2 months ago by mw0uzo.

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

More
4 years 2 months ago - 4 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: 4 years 2 months ago by mw0uzo.

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

Time to create page: 0.187 seconds
Powered by Kunena Forum
Solar powered Raspberry Pi 4 server stats: CPU 30% Memory 14% Swap 15% CPU temp=59.4'C Uptime 11 Days