I have installed my own Redis database on my RaspberryPi and connected the database via the CloudDb component.
It works great! @TIMAI2 Thanks
My questions:
A Redis instance has 16 databases (0-15)
With the settings "Server" and "Port" of the CloudDB component I always end up on database 0. In some publications I have seen that you can specify the database using the port: e.g. 6379/2.
But I cannot specify this in the CloudDB component.
Is there a way for AI2 to access the various databases of a Redis instance?
Redis offers the key type: Sorted sets
I understood that Redis automatically sorts the lists (players / points) here. You can use this as a great key for high scores?
The cloudDB component and blocks is really only setup to handle key:value pairs.
To use the advanced features of redis you would need to develop your own "front end" on your raspberry pi such as phpredis, although there are many....https://redis.io/clients, and then interact using the web component or webviewer.
I have not used phpRedis, therefore cannot advise on how it works. From what i see, it does appear possible to utilise all the redis goodies e.g. SET and LISTS, and to be able to change databases.
Suggest you give it a try, and follow the extensive documentation provided.
Hi TIMAI2. I am using the Taifun Background Location paid extension. But I would like to know if you can help me to find a method to save the coordinates in CloudDB please.
My method uses the web component, and Taifun suggests to use the web component. Actual answer is I do not know, I do not believe anyone has tried this yet....
I'll try that, run the appropriate tests, and share the results to help someone else.
I want to create a GPS app that sends data in the background to locate our truck drivers from our construction company. They have to go to work in a very dangerous area and there are many vehicle thefts. We're not that interested in trucks, but our drivers are. I will follow your advice, thank you very much!