kittengineering / Omgevingsmonitor_Software

9 stars 12 forks source link

Totally unclear how to connect to openSenseMap #7

Open matthijsfh opened 5 days ago

matthijsfh commented 5 days ago

It is mentioned this module could connect to openSenseMap, but zero documentation. Please fix/update. ESP.c has at least the openSenseMap URL, but how to get it working?

davos666 commented 5 days ago

from line 475 you can change it

i have not test it

remco1271 commented 3 days ago

See here that there is a utility for it. But it is missing from the page https://wiki.deomgevingsmonitor.nl/index.php/OpenSenseMap

FransKITTnl commented 3 days ago

I think that the USB Utility (also mentioned on the main page) can be used for this. It has a button 'Add a omgevingsmonitor' which opens the 'AddSenseBoxForm'. I presume that this will set some settings in the EEProm that will switch the firmware to send messages with measurement data to api.opensensemap.org/boxes (I do not have the exact instruction on how to use it. I will try to update the wiki when I know more.)

tjallingk commented 3 days ago

i tried to make it work made an acount etc but cant fill in the info anywhere in util and get an error creating sense box no refresh token available error. also when i tried modding the firmware directly by using the cube ide thing i get warnings about denny and joris their users not existing basicaly its saying cant find drivers in c:/ etc looking for those 2 users.

UPDATE: it turns out you need to login with your acount from sensmap in the util pasword and email then it works it looks like

FransKITTnl commented 3 days ago

when i tried modding the firmware directly by using the cube ide thing i get warnings about denny and joris their users not existing basicaly its saying cant find drivers in c:/ etc looking for those 2 users.

Did you follow the steps as mentioned in Programmeeromgeving: Compileren en bouwen especially with respect to:

(For some reason absolute paths are stored in the project, instead of relative paths, which means that for each user paths are added.)

UPDATE: it turns out you need to login with your acount from sensmap in the util pasword and email then it works it looks like

Okay, that makes sense.

tjallingk commented 3 days ago

well i tried to follow that i only opend it but it might not be a problem will find out later. regarding the sensmap it did add the device so i tought it would work but i dont get data in there. is there some step like needing to upload or something that i missed if i do need to upload is there a way to get the firmware elf file or bin as the tool you guys provided has trouble seeing my sensor but cube programmer via usb mode does allow me to upload firmware

FransKITTnl commented 3 days ago

@tjallingk, the people who know more about it are at WoTS. I will update the wiki as soon as I know more.

matthijsfh commented 3 days ago

Nice!

At openSenseMap.org you need to configure what kind of sensor box you have. The WOTS gadget is not a template (of course), so I think we should work together to make a readme for that which shows both the steps on the STM32 / EEPROM and also the steps on openSenseMap.org to make it work.

tjallingk commented 3 days ago

Nice!

At openSenseMap.org you need to configure what kind of sensor box you have. The WOTS gadget is not a template (of course), so I think we should work together to make a readme for that which shows both the steps on the STM32 / EEPROM and also the steps on openSenseMap.org to make it work.

it doesnt seem to be the case if you login in the provided usb tool it makes one for you. with all sensors etc premade

edit: i also did make one at first but now have 2 sensors

Logic-7E8 commented 2 days ago

So, after some trying i understand how it works and managed to have the omgevingsmonitor to upload data to OpenSense:

What you need to do is this:

Connect the device to your PC/Laptop.. Press the "RESET" for 5 seconds (STATUS LED blinks RED) , then press "BOOT" and then "USER", the DB LED will turn white.

UserInterface_480

Now open the "omgevingsmonitor.exe", in the dropdown menu select the correct COM port Login to the OpenSense account using your "E-mail and Password" Click --> "Add a omgevingsmonitor" , fill in the required details. After having added the "omgevingsmonitor" it will show up in the window above the "Add a omgevingsmonitor" button. Select the sensor, by left clicking it. Now you will see 7 sensors show up in the box below it. Enter a custom name, (i used the name of the "omgevingsmonitor" entered in OpenSense. Now click "Configure gadget" and see commands being send to the device:

image

Now you have to reconnect the device to your Wi-fi again.

Connect to Accespoint "Wots-Config". When presented with the config page (http://192.168.4.1) Enter your own SSID en Password and click "Connect". When connected the webpad page closes automatically. Reset the Gadget (Status button).

Done.

You should now see data like this in OpenSense.

image

tjallingk commented 2 days ago

@Logic-7E8 your amazing the reset boot combo trick is indeed what did the trick i could select the right com before that but it did not send stuff now it works amazing thanks for this information. now im going to look into the mic having a really high noise floor in software