| [22:55:02] | * JustTB has quit (Ping timeout: 250 seconds) |
| [04:09:33] | <germarsh[m]> | Hello, |
| [04:09:34] | <germarsh[m]> | (Please excuse my ignorance if this has been asked before but I am new to this comms method!) |
| [04:09:34] | <germarsh[m]> | I have just installed farmOS locally on Raspberry Pi and am very impressed! I have been supporting Drupal sites for a few years and see that this is away from the usual concept of publishing articles and the like as it is mainly used as a means of populating and displaying a database with little access to content types. For what it is intended though it is brilliant! |
| [04:10:43] | <germarsh[m]> | (Oops - pressed Return a bit too quick) - Any way of altering the range of birth dates for animals? Some of our sheep were born in 2007 but the range only goes back to 2008!. Yes I know - rather old for a sheep. |
| [04:11:54] | <germarsh[m]> | I know that there has been a request for help with the documentation so will volunteer once I have become familiar with the system. |
| [04:30:23] | * JustTB has joined #farmos |
| [05:55:42] | * JustTB has quit (Quit: Leaving.) |
| [06:17:32] | <mstenta[m]> | Hi @germarsh:matrix.org |
| [06:18:19] | <mstenta[m]> | Happy to hear you're giving it a try! And that you're got it running on a raspberry pi! :-) |
| [06:18:38] | <mstenta[m]> | Regarding birth date range: https://www.drupal.org/project/farm/issues/2906277 |
| [06:21:13] | <mstenta[m]> | The database can handle any date, but there's currently a limitation with the date selection widget (form element) that farmos uses |
| [06:21:48] | <mstenta[m]> | It probably won't be hard to solve, just haven't done it yet because it hasn't come up often |
| [06:31:11] | <germarsh[m]> | The Raspberry Pi is an awesome little machine. I have a few now with one being used to monitor a ground source heat pump via Homeassistant. I have had to learn mySQL a bit and just connected to the farmOS db using mySQL Workbench. I was hoping to produce some customised reports but there are so many tables I need to learn more! It is no big deal on the date limitation - Just put the birth date in the description. |
| [06:32:08] | <germarsh[m]> | Likewise where we do not know an exact date I just put the 1st of the month. |
| [06:33:46] | <germarsh[m]> | Drupal is having a bit of a moan about file protection on the Rpi but this is only on the local net in any case. I have been using Siteground for Drupal hosting for a few years so would probably use that to host any real implementation. Saves me worrying about backups too. |
| [06:34:46] | <germarsh[m]> | Although I have been doing computer system support for many years, I am quite new to Linux so that is another learning curve. Good for me at my age though! |
| [06:35:28] | <germarsh[m]> | Thank you for your quick response - it is good to see someone so passionate about something they have created. |
| [06:39:42] | <mstenta[m]> | Great! Yea the pi will be slower than a normal computer/server too |
| [06:40:13] | <mstenta[m]> | But it should still be usable |
| [06:40:51] | <mstenta[m]> | There's been some exciting discussion around sensors in general! You might be interested |
| [06:41:55] | <mstenta[m]> | In many cases the pi will begin connected to the sensors directly and then relay those readings to farmos hosted in the internet |
| [06:49:03] | * JustTB has joined #farmos |
| [07:12:49] | <germarsh[m]> | Am I correct in assuming that the farmOS base for Drupal is so customised from the usual one that the normal Drupal 7 modules would need some work? |
| [07:21:34] | <mstenta[m]> | No it's a normal Drupal distribution |
| [07:22:25] | <mstenta[m]> | You can drop any D7 module in and it should work as usual |
| [07:23:14] | <mstenta[m]> | I try to limit the modules included right now to keep things simple ahead of the inevitable D8 upgrade process |
| [11:52:16] | <troym541[m]> | ACTION sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/FgCVBcTutuFsjXKJ... > |
| [11:55:24] | <mstenta[m]> | troym541: Awesome!!! |
| [11:55:30] | <mstenta[m]> | Looking forward to hearing more! |
| [11:58:39] | <dornawcox[m]> | Very exciting. Do you have your node red flows published anywhere yet? There is an active FIOT (Farm Internet of Things) group within GOAT that would love to connect and compare notes. Looking forward to learning more! |
| [12:09:06] | <troym541[m]> | The most difficult part of it all was figuring out how to generate the RestAPI session/access tokens from my RaspberryPI, and then configuring my JSON payloads so that they would feed into Drupal Rest without any errors. I will have a link to all my notes and flows available soon. There you will be able to see videos, notes, and downloads of my work. It will be free and opensource, and we will be accepting donations. |
| [12:25:17] | <mstenta[m]> | That's awesome troym541 - I look forward to collaborating in any way we can :-) |
| [12:40:14] | <troym541[m]> | @dornawcox:matrix.org: Here is a basic flow that I started with to get data flowing from my RaspberryPi to FarmOS. It is fairly straight forward and should get you going posting data to FarmOS, and you will also have many options via Node-Red running on your PI to dispaly and log data to your local network. |
| [12:40:22] | <troym541[m]> | ACTION sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/tXWewVaiYuoiRkHs... > |
| [12:42:15] | <mstenta[m]> | troym541: Does this post to a sensor asset endpoint in farmOS? Or somewhere else (I'm not versed with Node Red enough to read the flow)? |
| [12:42:37] | <mstenta[m]> | (Also, you can use something like https://pastebin.com/ to paste code and then link to it here, to avoid filling the chat) |
| [12:42:59] | <troym541[m]> | I should mention that you only need the MQTT node if y ou plan to interact with the pins on your PI. Otherwise you could just delete and disregard that part. |
| [12:43:07] | <mstenta[m]> | (or GitHub gists) |
| [12:47:47] | <troym541[m]> | mstenta: With that flow you would be able to configure a sensor endpoint in FarmOS and use the http request node to send the data to that endpoint or any other that you configure. I am using a DHT22 sensor on my pi to generate the data. |
| [12:51:08] | <mstenta[m]> | awesome! |
| [12:51:41] | <mstenta[m]> | Oh also, troym541 you might be interested... |
| [12:51:57] | <mstenta[m]> | In the latest release of farmOS, sensor data is now accessible via API |
| [12:52:19] | <mstenta[m]> | https://farmos.org/guide/assets/sensors/#pulling-data-from-a-listener |
| [12:52:58] | <mstenta[m]> | So you could also use Node Red to pull data from farmOS - @dornawcox:matrix.org was experimenting with this last time we got together to hack in person :-) |
| [12:54:15] | <mstenta[m]> | Also worth noting: donblair and I were discussing the possibility of separating the farm_sensor module out of farmOS into a sensor module for Drupal in general |
| [12:54:32] | <mstenta[m]> | So you could install it on non-farmOS Drupal sites for posting data |
| [12:55:21] | <mstenta[m]> | (This probably won't happen until we begin porting farmOS to Drupal 8, however... and so I don't know if it will be useful to you because you're using OpenAtrium - I don't think there is a D8 version of OA being developed unfortunately... :-( ) |
| [12:55:48] | <mstenta[m]> | But the farm_sensor_listener module is relatively simple, so you could just copy it and modify for your needs if you wanted |
| [12:56:08] | <troym541[m]> | Cool, yes I saw that there had been a new release in FarmOS, I am looking forward to updating and trying the new features. |
| [12:59:52] | <troym541[m]> | No D8 of Atrium that I know of but IOT-Atrium will be able to communicate with D8 sites using REST. I see Atrium being very useful for many years to come. And I am also thinking about maybe trying to breath some life back into the ERPAL project as it seems to have many desirable features ready to go out of the box, including REST. |
| [13:04:31] | <mstenta[m]> | Cool - yea I was a big fan of Atrium in Drupal 6 |
| [13:04:40] | <mstenta[m]> | I haven't actually tried the D7 version though |
| [13:04:58] | <troym541[m]> | Here is a link to my latest Node-Red Dashboard, https://nodered.iotatrium.com/ui/#/0 and my Drupal virsion of the Data coming out of it, https://dev.logisticsets.com/iot_device/raspberry_pi_3_model_b/1. If the Node-Red Dash doesn't load right away click refresh and it should load. Not sure why that is happening but ever since I moved Node-Red to and LXD container it makes me refresh the page to get the data to load. |
| [13:05:01] | <mstenta[m]> | Atrium was one of the first great examples of what could be done with Drupal distributions |
| [13:05:15] | <mstenta[m]> | There probably wouldn't be a farmOS if I hadn't been inspired by Atrium :-) |
| [13:10:54] | <troym541[m]> | Agreed mstenta!!! my biggest inspirations to keep going with Drupal have been OpenAtrium and all the amazing documentation that goes with it, and Erpal. But my biggest inspiration was FarmOS, specifically the way you built the sensor listener protocol and the custom API key, it really opened my eyes to a lot of possibilities . Thank you for that mstenta! |
| [13:12:40] | <mstenta[m]> | Cool! :-D |
| [13:12:51] | <mstenta[m]> | Yea Erpal looked really cool too - never tried it |
| [13:13:08] | <mstenta[m]> | I was working on a double-entry bookkeeping module for D7, so Erpal seemed like a nice complement to that |
| [13:13:31] | <mstenta[m]> | Never did finish that project... but I'd love to see it get picked up again! Maybe in farmOS/Drupal 8 ;-) |
| [13:13:43] | <mstenta[m]> | There is definitely a need for bookkeeping integration in farmOS |
| [13:17:52] | <dornawcox[m]> | troym541: Thanks for posting the flow! I will try it out later this week. I will also send over the gitlab address for the general FIOT flows/use cases |
| [13:22:47] | <dornawcox[m]> | I have benchtop tested several of the automation flows and am excited for field deployment this next season. Very interested to see which nodes you are using and JSON formatting in the flows. |
| [13:27:52] | <troym541[m]> | @dornawcox:matrix.org: Awesome!!! I would love to connect and help out in anyway I can. |
| [13:31:52] | <troym541[m]> | Also I am working on an image download for Raspberry Pi3 that is based on Rasbian Jessie image and has Node-Red installed and configured with all the dependencies right out of the box. You would be able to download my image and burn it straight to your SD card using Etcher or Linux terminal. |
| [13:45:31] | <dornawcox[m]> | troym541: we we're thinking along the same lines re: image. We had some dependencies for one wire and Grove pi support we wanted include on the image. Let's move this over to the FIOT thread soon! |
| [14:27:56] | <mstenta[m]> | That sounds awesome troym541 and @dornawcox:matrix.org |
| [14:28:15] | <mstenta[m]> | I'd also love to share some Ansible ideas with you some time |
| [14:28:50] | <mstenta[m]> | Ansible allows provisioning remote Linux servers (eg: a set of raspberry pis) from your laptop |
| [14:29:26] | <mstenta[m]> | So you could just get some standard Raspbian SD cards, put them in a bunch of Pis deployed on the local network, and then use Ansible to install everything you need on them automatically |
| [14:29:34] | <mstenta[m]> | It works great for deploying updates as well |
| [14:29:42] | <mstenta[m]> | Without physical access needed |
| [14:31:25] | <mstenta[m]> | It could be a great way to do mass-deployments, eg: rolling out node red flows to a set of Pis that are already deployed |
| [15:31:31] | <troym541[m]> | Sounds like we are all on the same track. I have not herd about Ansible, but that sounds amazing! I am doing something that sounds similar with LXD to deploy my cloud containers that run my Node-Red running in the cloud. |
| [17:04:55] | <troym541[m]> | Also, along the lines of remote deployment and updates. |
| [17:08:29] | <troym541[m]> | Also along the lines of remote deployment and updating I think that Snaps offered by Conical seems to show a lot of potential for package management and distribution. Not only for Node-Red but FarmOS or any Drupal Distribution that someone is looking to mass deploy, maintain, update, etc. |
| [17:12:52] | * JustTB has quit (Quit: Leaving.) |
| [17:32:36] | * JustTB has joined #farmos |
| [18:53:23] | * JustTB has quit (Ping timeout: 246 seconds) |