IRC logs for #farmOS, 2023-05-18 (GMT)

2023-05-17
2023-05-19
TimeNickMessage
[04:52:29]<Ujeeee[m]>Hi all, how to get summary of my plant asset? I want to know qty (inventory) of my plants group by plant family
[08:16:06]<mstenta[m]>Ujeeee: there might not be a way to get exactly what you want in the farmOS UI, but you can build a module to generate a report, or export data to a CSV and summarize outside of farmOS in the meantime, or use the API to get inventories
[10:42:35]<Ujeeee[m]><mstenta[m]> "Ujeeee: there might not be a way..." <- is there reading material to make this module.?
[10:43:13]<symbioquine[m]>https://farmos.org/development/module/
[10:44:13]<symbioquine[m]>Then also possibly: https://www.drupal.org/docs/user_guide/en/views-create.html
[10:45:45]<symbioquine[m]>Alternatively, if you want to go for the scripting route and you're self-hosting, one option is to install the [jupyterlite module](https://www.drupal.org/project/jupyterlite) and try out some of the examples in https://farmos.discourse.group/t/share-your-jupyterlite-examples/1134
[10:54:26]<symbioquine[m]>Or, yet another approach, if you wanted to make a farmOS module that displays your report/table within farmOS but wanted to write it in Javascript/Vue, you could check out [my land drawing tool](https://github.com/symbioquine/farmOS_land_drawing_tool/tree/development) as a starting point. The map part of that might not be relevant, but it generates a table of assets and uses the API for getting data so that part could be very similar.
[11:15:53]<Ujeeee[m]><symbioquine[m]> "https://farmos.org/development/..." <- thanks for your help
[11:20:54]<Ujeeee[m]>btw, in the "sensor" asset, can we subscribe to mqtt server?
[11:22:29]<FarmerEd[m]>Not directly, but I'd do it using Node-Red
[11:24:02]<Ujeeee[m]>FarmerEd[m]: oh, I see, is there a guide for this? does farmOS get the data from Node-Red then?
[11:26:30]<FarmerEd[m]>https://farmer-eds-shed.com/farmos-sensors-with-home-assistant-and-node-...
[11:27:04]<FarmerEd[m]>I made this one a while back
[11:27:34]<FarmerEd[m]>Doesn't include mqtt but that's trivial to add.
[11:31:16]<FarmerEd[m]>Oops that was for V1, but V2 is similar, I can share a flow later when back at my computer.
[11:31:49]<Ujeeee[m]><FarmerEd[m]> "https://farmer-eds-shed.com/..." <- thanks, it is even better because I am also using home assistant
[12:04:41]<mstenta[m]>farmOS dev call is now - all are welcome! [https](https://meet.jit.si/farmos-dev)
[12:04:42]<mstenta[m]>s/[//, s/](https//
[14:33:11]<mstenta[m]>symbioquine paul121 turns out we need Gatsby 5+ for both gatsby-remark-videos and gatsby-remark-copy-linked-files :-/
[14:33:54]<mstenta[m]>on a scale of 1-5, how hard do you think updating gatsby will be? 😅
[14:51:39]<paul121[m]>Ugh. And neither of those have an older version that might be compatible? I guess npm would have resolved it
[14:51:57]<paul121[m]><mstenta[m]> "on a scale of 1-5, how hard do..." <- No idea!
[14:52:55]<mstenta[m]>I'm falling down a wormhole trying
[14:53:37]<mstenta[m]>Gatsby 5 needs React 18 which needs Material UI 5 which needs........................
[14:53:43]<mstenta[m]>😵‍💫
[14:54:34]<mstenta[m]>ACTION is trying to understand how complicated this is: https://mui.com/material-ui/migration/migration-v4/
[14:55:32]<mstenta[m]>when did we rebuild farmOS.org? how has this much changed already?? lol
[14:56:17]<mstenta[m]>maybe i'll just upload the mp4s to youtube 🤦
[15:07:55]<mstenta[m]>bah. gatsby-material-ui-components requires gatsby 3 or 4, but not 5 🫠 https://github.com/hupe1980/gatsby-theme-material-ui/blob/3dab8327c7f6f9...
[15:08:43]<mstenta[m]>oy i think https://github.com/hupe1980/gatsby-theme-material-ui is no longer maintained
[15:15:07]<mstenta[m]>https://github.com/farmOS/farmOS.org/issues/78
[15:25:01]* peko[m] has quit (Excess Flood)
[15:39:53]<paul121[m]>bummer :-(
[15:42:02]<paul121[m]>can't help but think about mkdocs... 😁 the fact that it's designed to do one thing, it would likely be easier to maintain?
[15:42:42]<mstenta[m]>i did love mkdocs :-)
[15:42:50]<paul121[m]>less customizable, but if we could get our multi-repo structure working that'd be cool
[15:43:10]<mstenta[m]>yea that's the main thing - the new multi-repo aggregation stuff is 💯
[15:43:55]<mstenta[m]>this may just be an issue of finding a new (maintained) gatsby theme, though?
[15:44:16]<mstenta[m]>to be fair, we had to jump through some hoops to have the material theme in mkdocs too, iirc
[15:45:09]<paul121[m]>;-) https://github.com/jdoiro3/mkdocs-multirepo-plugin
[15:47:05]<mstenta[m]>Ha!
[15:48:15]<paul121[m]>mstenta[m]: is this the material theme? or did we only have material for a brief time? https://v1.farmos.org/
[16:16:20]<mstenta[m]>yes that's material i think?
[16:17:14]<mstenta[m]>oh wait maybe not... maybe that's just bootstrap theme
[16:17:59]<mstenta[m]>maybe it was bootstrap we had to jump through hoops for - i forget now