-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use - Readme missing #1
Comments
Hey @SirSundays !! Thanks for reaching out and opening this issue. I agree a readme is needed... this module is still a bit of work in progress though 😃 Any input you have is most certainly welcome! As you've noticed the module itself doesn't provide an actual datastream type (yet?). Right now it is only providing some higher level pieces that (I hope) will make it easier to integrate data streams with Influx db:
My intention is to build out some helper methods on both the For example, will your data in influx db be tagged with the same UUID as the data stream UUID? Or are multiple tags required to uniquely identify data in influx db? And does this mean your data stream requires additional field(s) in the farmOS DB to save this configuration? Additionally, how should the data be queried? Since influx db is a time series db there are many more options for querying and aggregating data. Depending on the type of data/sensor it might make sense to aggregate over a given internval instead of returning each data point. At least initially it seems too complicated to create a "default" influx data stream that can work for different use cases. I'd love to make all of these things configurable from the UI but right now it's less work to hard-code these behaviors in separate data stream classes. |
Oh, but also worth noting, this project got put on the back burner while turning focus to core farmOS 2.x work. But farmOS 2.x is coming along well and should have a beta release soon - so I will be giving this module some attention again soon! Expect to see some updates (and a readme!) next soon, hopefully next week.. |
Hi, @paul121 thx for your answer.
so after installing the plugin (copying all the files to sites/all/modules/farm I think and installing it in farmOS itself) I first got the error of invalid URL, because I forgot the HTTP. Then I wanted to test the connection but wasn't able because I didn't install the influx lib beforehand manually. I thought it would do it all automatically in the background. After that, I could successfully test the connection (was good).
So I got it right that Step one is basically to make the library easily modifiable so one can customize it after their likings?
Maybe I go to this topic a bit more naive, but I think it wouldn't need the same UUID. If you can configure the datastream and tell it please get the data from this measurement (+ maybe the specific field n the measurement) it should be fine. A bit of a background for you: I'm working with most of my sensors through Node-Red and saving all my data in InfluxDB. In Node-Red I just have the raw value and say: put this value into this influxdb database under this measurement. So very simple. Right now I then display all the values in Grafana. (At the End this maybe should also be in farmOS. So that farmOS has management as well as monitoring)
You are right. I think something like this needs to implement but not at a very high complexity. Maybe it could be similar to the implementation in Grafana (tho not as complex). There you can basically select group by interval or give me every value. And if you group them, should it then take min max mean etc.
I can completely understand that!
I'm really looking forward to that! I really wish I could help more with that but these are my first steps in PHP and kinda have an idea of how such a module is build-up, but coming from nodejs this is sometimes still a bit confusing. Let's say I was really glad and happy when I was able to modify the NRCS module to have my own map in it 😂 |
Ah yes.. sorry about that. I just updated the So if you install this module with composer eg:
Totally! That's another valid use case as well. I think the reason for using tags is so that you can identify multiple sensors all posting
No worries! Really happy to hear form you @SirSundays and welcome to the farmOS community! Great job figuring out a custom map!! That involves understanding a bit of everything. There certainly is a learning curve with Drupal and farmOS but lots of powerful things once you can get a grip for it. Just want to share a couple things if you aren't already aware:
|
This will be the best-case scenario in the end for sure.
Ah ok, now I get what you mean before. For me, this is really never a problem. As I said before I'm using Node-Red in such projects every time so when I have multiple sensors from the same kind then I will always give the measurement a distinctive name. So that I can differentiate them in any case.
Yes but I never thought of that to be honest 😂
I hope I will get there in the next couple of months. I had the next monthly calls already on my calendar but was not aware of the development calls, to be honest. I will definitely try to be there in some of the meetings maybe I will then get a broader view on all the things and see how they connect. |
Hi @paul121,
it's really great what you did here already. First I wanted to write my own package for adding an influxdb datastream but when I found this it was obsolete to do a second one (and I'm also a beginner in PHP/farmOS/drupal so...).
I got this one here installed and got a connection to my influxdb but what I was wondering: What next?
How do I add an influxdb datastream to a sensor for example? Would I need a special influxdb sensor for that (no right?)?
I hope this isn't a too silly question.
Maybe if you can help me along with the next steps that would be great.
Jan
The text was updated successfully, but these errors were encountered: