Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Ask Lemmy
  3. What automation processes have you implemented that make your life easier?

What automation processes have you implemented that make your life easier?

Scheduled Pinned Locked Moved Ask Lemmy
asklemmy
16 Posts 12 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cm0002@lemmy.worldC [email protected]

    Original question by @[email protected]

    S This user is from outside of this forum
    S This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #7

    A few years back me and my dad set up a raspberry pi with a temperature probe to monitor the water temp in a local swimming hole, it reports the temperature every half hour and submits it to a private webpage.

    Works really well

    C 1 Reply Last reply
    7
    • cm0002@lemmy.worldC [email protected]

      Original question by @[email protected]

      joekrogan@lemmy.worldJ This user is from outside of this forum
      joekrogan@lemmy.worldJ This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #8

      Monthly backups of containers and volumes, notifications of disruptions, rules for salary to send it to the right places. Arr stack saves a ton of time too

      1 Reply Last reply
      2
      • S [email protected]

        A few years back me and my dad set up a raspberry pi with a temperature probe to monitor the water temp in a local swimming hole, it reports the temperature every half hour and submits it to a private webpage.

        Works really well

        C This user is from outside of this forum
        C This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #9

        That's a rad idea. How are you powering and communicating with it? When I hear "watering hole" I picture a secret swimming spot out in the woods somewhere.

        S 1 Reply Last reply
        1
        • C [email protected]

          That's a rad idea. How are you powering and communicating with it? When I hear "watering hole" I picture a secret swimming spot out in the woods somewhere.

          S This user is from outside of this forum
          S This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #10

          It run off of a 12v motorcycle battery, the whole thing is on a timer, every halfhour, the timer gives the pi power for two minutes, during those two minutes the pi boots up, and runs a bash script to collect and send the data, wait for one min and shutdown the pi.

          The pi communicates over wifi with a friendly neighbouring house.

          C 1 Reply Last reply
          3
          • S [email protected]

            It run off of a 12v motorcycle battery, the whole thing is on a timer, every halfhour, the timer gives the pi power for two minutes, during those two minutes the pi boots up, and runs a bash script to collect and send the data, wait for one min and shutdown the pi.

            The pi communicates over wifi with a friendly neighbouring house.

            C This user is from outside of this forum
            C This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #11

            Ingenious setup!

            S 2 Replies Last reply
            2
            • cm0002@lemmy.worldC [email protected]

              Original question by @[email protected]

              H This user is from outside of this forum
              H This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #12

              I've been playing Factorio with a friend. Our factory was getting large enough that him downloading the map and catching up was getting really slow (even though the factory itself wasn't that big). We ended up setting up a VPN which somehow made that process SIGNIFICANTLY faster. However, I really only wanted the VPN on while we were playing the game. So I ended up writing some automation to detect if I was no longer playing and the VPN was still active and then shut it off automatically. It's a small thing but I'm both proud of it and happy with the results.

              1 Reply Last reply
              1
              • cm0002@lemmy.worldC [email protected]

                Original question by @[email protected]

                F This user is from outside of this forum
                F This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #13

                Seriously, I haven’t automated anything. And life is just fine.

                1 Reply Last reply
                0
                • C [email protected]

                  Ingenious setup!

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #14

                  Some more details, the temperature probe is a DS18B20, it connects to the GPIO pins, and communicates over the 1-w protocol which is built into the pi, you get the data digitally in celsius, if it is a negative temperature it is a hassle to deal with so I just made it report 0 as default when it is too close.

                  The probe can error out, it then reports the temp as 85, since the water never actually gets that high in reality, I solved it by checking if the value returned from the probe is 85 before submitting it, if it is, it will take another measurement, check that for 85, if that is still 85, it will check one final time and then just submit the result, so far this has solved the issue.

                  Once the data is formated and ready, the pi makes an HTTP request, posting the data using curl, to a simple PHP/MySQL site I hacked together, where a page displays the current temp, a timestamp of when the temp was taken and a small graph showing changes to the temp over the last 24h


                  Planned improvements:

                  Use the status field that the pi reports to include wifi signal strength, as trees grows around the device it will reduce the signal strength meaning that measurements are lost, with the signal strength data we can check how bad it is and clear leaves ahead of the problem.


                  Considered improvements:

                  Security, as it stands right now, there is zero security to submit data to the database, anyone can just access the submit.php page and it will add an empty entry to the database, or if they figure out the syntax they can just post whatever data they want into the database. I would like to add a simple validation of a static random string that the pi sends along with the rest of the data. I am no real webdev, just an IT guy who hacked this together.

                  Power monitoring, it would be good to have an idea of of how well charged the battery is, it would require a separate module which would also require power, reducing the battery life as it is. Currently the battery lasts a few months and we have a manual schedule to replace it, it is not a huge problem, but it would be nice to have the data.

                  1 Reply Last reply
                  1
                  • C [email protected]

                    Ingenious setup!

                    S This user is from outside of this forum
                    S This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #15

                    I forgot about three more technical aspects of the device...

                    The bash script it set up to run as a service in systemd, this is to make it run on startup and have some control over it, this is important for the next part.

                    The one min delay after submitting the data and shutting down the pi, this gives me time to find the command to stop the script before the script shuts down the pi, this is important so you can access the system and service it.

                    Why shut it down at all, the power will be cut shortly after?

                    This is to preserve the filesystem and reduce the risk of corruption, consider that the pi will turn on and off 24 times every day, any error caused by improper shutdowns will quickly amplify.

                    1 Reply Last reply
                    1
                    • cm0002@lemmy.worldC [email protected]

                      Original question by @[email protected]

                      A This user is from outside of this forum
                      A This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #16

                      Copied from the original post:

                      I'm a big fan of automating as much as I can.

                      • Lights automatically turn on when someone enters the room, but only if it's dark enough to need lights in that room at that moment. Turn them off automatically when presence is no longer detected (not just IR based motion detection).
                      • My old washer and dryer alert me when they're done thanks to vibration sensors.
                      • Media downloads when added to a watchlist.
                      • Regular backups locally and to the cloud.
                      • My phone enables/disables rotation lock based on the app I'm currently using.
                      • Phone also opens various playlists when connecting to my car stereo based on date/time.
                      • Various "scenes" to turn devices on and off, control brightness, volume levels, etc. This includes controlling devices that are IR, RF, Bluetooth, and Zigbee based.
                      • Game servers that update when new versions are released, but only when no players are connected. If anyone is connected, sends a message to a discord server (that is also connected to Matrix) alerting everyone to the available update and asking players to log off at their earliest convenience. Players can also check on game server status with bot commands in the game's channel on that server.

                      Everything runs locally and has a manual backup so I can still control everything the old fashioned way if my phone is dead or if my non tech savvy parents are over and need to operate any of it.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups