Ruuvi Station Mobile Application

@io53 any ideas on this one?

@stringy Can you try to see if you can see the tags with nrf connect and report here if this happens again? https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&hl=en

I’ve had this happen (or at least the same symptom) to me once on my nexus 5x. Bluetooth completely stopped working, I could not get any apps to see low-energy devices. Restarting bluetooth did not help, but as for you restarting the phone did.
I’ve not been able to reproduce this and it was quite a while ago since I encountered it. My best bet this far is that androids bluetooth stack crashed :thinking:

1 Like

Hi,

I can’t find any instructions or data about how to use the weather station app as a gateway. There are two places where I can enter an URL but I don’t know what those URLs could mean.

Is there any documentation about this?

BR,

Hardy

Hello,

I think the documentation is still being worked on (@io53?). In the meanwhile, here’s a sample data:

// { deviceId: 'laurin-s8',
//   eventId: '591db9bc-32f0-4059-86e0-8e6cc808492c',
//   tags: 
//    [ { accelX: 0.019,
//        accelY: -0.003,
//        accelZ: 1.041,
//        defaultBackground: 0,
//        favorite: false,
//        humidity: 88,
//        id: 'F8:AC:76:59:5B:24',
//        name: 'Over Humidity',
//        pressure: 974.01,
//        rawDataBlob: [Object],
//        rssi: -45,
//        temperature: 27.25,
//        updateAt: 'Mar 6, 2018 11:21:46',
//        voltage: 2.989 } ],
//   time: 'Mar 6, 2018 11:21:46' }

the data gets HTTP POSTed to URL you specify at the background scan interval.

Thanks for your reply! Is that format accepted by any public cloud service? I need a way to demonstrate our system by presenting cloud data on a mobile phone. Or do you have alternate formats to facilitate e.g Thingspeak?

BR,

Hardy/VTT

You’ll probably have to implement your own parser for the data, for example https://github.com/ruuvi/ruuvi.streamrproxy.js listens in to data and formats it for Streamr backend.

I took a shot at making myself a Python API for receiving these POST-requests. It’s available at https://gitlab.com/tctovsli/ruuvi-gateway.
I’m not an experienced programmer, but it works.

One of the things I noticed is that the mobile app sends at a 5 minute interval (even though the text in-app seems to be referring to the background sync interval).
Edit: Disregard this last statement. When setting up a different android device as gateway, the interval was 15 seconds. Guess my first attempt got stuck somehow (a bug).

1 Like

I found that many times turning bluetooth off and leaving it off for several minutes would fix it and those times that it didn’t a reboot would normally fix it. About a month later the problem seemed to go away. I’m assuming that it could have been fixed by a OS update.
Thanks for the help, sorry for the delayed response

NEW RUUVI STATION incompatibility with old anrdoid phone.
I just found from the Ruuvi news, that there is a new Ruuvi Station. Thank you fellows for it!
BUT when I tried to install it from Play Store I found that my phone is not supported. What a pity. I would like to use my retired Huawei Honor Hol-U19/ android 4.4.2 as a gateway to IBM cloud / Nodered application, but it is no more possible.
My other similar phone runs the old Ruuvistation fine in this purpose, though there are some start-up problems for background scan or sending to IBM cloud. Anyway, it works fine once started.
If the new version can not support old android versions, could it be possible to keep also the old version available for older phones?

Even better, if there were just a gateway version for android without graphs and supporting multiple Ruuvitags.

Yes, we had to drop Android 4 support on Ruuvi Station 1.0.

It’s definitely possible to make the old APK package available for download. Here it is:

https://ruuvi.com/binaries/20180425-ruuvistation-0.9.2.apk

Hi, I got Ruuvi Station sw update into my Samsung Xcover 4 (Android version 8.1.0) few days ago. After that App doesn’t anymore receive data from raw mode enabled Ruuvitags. I have removed all tags and also reinstalled app without any success. In raw mode enabled, tag MAC-addresses are not discovered at all.

We have received a few similar feedbacks (all Samsung & Android 8.1) and are finding the root cause. A fix will be realeased as soon as possible.

Note for everyone: If you wish not to to be a beta tester, please leave the Ruuvi Station beta program on Google Play.

Hi everybody,

First of all, thank You for the excellent Android software!

I use it to send data from Ruuvitags to our own IoT platform. The gateway -mode seems to work very well in an old lenovo tablet and in nokia 7.1.

When testing our own server side code, I noticed that if the Dashboard is “front”, then the data is sent to server every second (even if the interval for sending was set 15 minutes for background service). For my case this is way too short cycle.

Is there a setting that forces the data sending to same value as in background reading/sending?

It would be very good feature if there was possibility to set the Dashboard to be shown all the time and the data sending would still have the same rule as in background mode.

I have pulled the source codes from git and installed Android studio. It has been a while from my last project with Java, so it takes a while to get to know the code.

I am planning to add the following feature to the software:

  1. To Settings page: Add ON/OFF setting to use the background sending schedule for data sending
  2. To scanner part: When updating the screen, the data is sent using back ground settings if setting is on.

Of course I will share the results and the changes I made to the code.

Sounds like a good feature. If it’ll be user-friendly enough, we’ll for sure consider to merge your future GitHub pull request to the master :metal: @io53

Oneplus 6T and ruuvistation app.
It seems to be very unreliable in scanning, when it is on foreground, it does not seem to collect data from ruuvitags, or find new ones. When i force restart app, it works couple of scans…
Any ideas on this?

I think foreground scanning issues have not been reported before and therefore fixing is hard. 1.0.0.9 (currently alpha release) has some background scanning fixes implemented but foreground has not been reported not to work… Could you join #mobile-apps on Slack and let’s chat about this more?

Can I find somewhere an example of server side code how to take POST method data and put it to db?

I use internally https://github.com/ruuvi/ruuvi.influxproxy.js/blob/738bc67b6ce9e7d6032432cd52e9399532a0a9a4/index.js#L186 , however the code is just a proof of concept and not actively maintained or supported.

Thanks for the report, if you can come up with instructions on how to replicate it’s easier for us to track down. @io53 @Rinat ^

I deleted the post. Looks like an issue with a subdomain not having the php super variables set by the Litespeed server.