Jump to content

SteamyTea

Members
  • Posts

    23847
  • Joined

  • Days Won

    200

Everything posted by SteamyTea

  1. I think these are the .py files. They will need a little modification for your sensors i.e. change the 28-xxxxxxxxxxxx to your DS18B20 number, and create directories to where you want to store data. 1 Wire #!/usr/bin/python3 #imports necessary libaries import os, time, datetime #load drivers os.system('modprobe w1-gpio') os.system('modprobe w1-therm') while True: #Sort out the time format dt = datetime.datetime.now() runday = dt.day dt.day == runday #sensor 1 tfile = open("/sys/bus/w1/devices/28-xxxxxxxxxxxx/w1_slave") text1 = tfile.read() tfile.close() temperature_data1 = text1.split()[-1] temperature1 = float(temperature_data1[2:]) temperature1 = temperature1 / 1000 #opens and reads the time ts = time.time() #sets time to UTC and dd/mm/yyyy hh:mm:ss format UTC = datetime.datetime.utcfromtimestamp(ts).strftime('%d/%m/%Y %H:%M:%S') logfile = '/home/pi/monitoring/data/1wire-%s-%s-%s.csv' % (dt.day, dt.month, dt.year) # logfile = '/var/www/html/data/1wire-%s-%s-%s.html' % (dt.day, dt.month, dt.year) #creates and opens or appends data to file tfile = open(logfile, "a") #writes to data file tfile.write("%s"%UTC + ",%s"%temperature1 + '\n') #closes data file tfile.close #sleeps for (n) seconds until next reading time.sleep(10) Switch #!/usr/bin/python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) import time, datetime GPIO.setup(7,GPIO.IN) input = GPIO.input(7) while True: if (GPIO.input(7)): ts = time.time() UTC = datetime.datetime.utcfromtimestamp(ts).strftime('%d/%m/%Y %H:%M:%S') tfile = open("/home/pi/monitoring/data/switch.csv","a") #writes to data file tfile.write("%s"%UTC + ",%s"%input + '\n') #closes data file tfile.close # print("Button Pressed") time.sleep(6)
  2. Looks similar to the medicine the French Doctor gave me. Is it just a tube with some air in it that acts as a spring?
  3. One Raspberry Pi GPIO pin will sense the temperature and can write to a file. Another pin can sense, via the relay (in effect a no volt switch) when it is on. When the pump is on, the GPIO that the relay shorts out and raise a flag against a time stamp. Then a bit of spreadsheet work to show the data. I think I already have some code written for this. Shall have a look tomorrow. Not so different from my electrical data logger, which just used a light pulse as a switch.
  4. A flow and return temperature logging and a sensor that know when the system is pumping. As long a you know the flow rate, you can work out the rest. So two DS18B20s and a 240V relay that shuts when the pump is energised. Then log the time the relay is closed.
  5. What sort of monitoring you going to do on it?
  6. Is it because it is mechanical? Not like those pesky photon upsetting the quantum state of electrons.
  7. I would start with listed and heritage buildings.
  8. So yo are going to add a greater volume of water in the pipes, but then reduce the amount of water in the radiators. Have you done a room by room hat loss calculation? If not, that is the first thing to do.
  9. Lovely fish are sole.
  10. Possibly. The data is only hours of spillage, not overall concentration levels, which would be much more useful.
  11. As a general rule, in life and in restaurants, avoid all bottom feeders. Like being a little bit pregnant though. I don't think people were that well and healthy 500 years ago.
  12. What I did my BSc Dissertation in.
  13. Is the month tested included in the period mean it is tested against. This is really a problem with using a statistical mean as it includes the extremes. It is why the median is often used. When looking at sunlight data, it is usual to create two sets of data, one that includes the night, and the other that excludes it.
  14. There is some historical data here: https://data.catchmentbasedapproach.org/datasets/theriverstrust::event-duration-monitoring-storm-overflows-2022-england-and-wales/about I used to kayak in it, during the summer of 1976 there was a particular problem, but generally it was not too bad.
  15. 1. Cornwall - 11,285 2. Carmarthenshire - 11,195 3. County Durham - 9,940 4. Gwynedd - 9,715 5. Rhondda Cynon Taf - 7,875 6. Northumberland - 7,382 7. Pembrokeshire - 6,988 8. Allerdale - 6,774 9. Bradford - 5,216 10. Neath Port Talbot - 5,034 Hours of sewage pumped. Brown crab sandwich anyone? https://www.cornwalllive.com/news/cornwall-news/cornwall-sea-rivers-most-polluted-8582451
  16. I wondered if a MVHR system could be made with a couple of car radiators.
  17. How about a heat exchanger?
  18. That is pretty reasonable. The 52m from the property raised an interesting thought in my mind, which is pretty warped. 50m away from me us probably 20 homes. There is a bit of land that currently has 1 tree on it, a large sycamore. If diameter of the canopy was replaced by a circle of PV, the area would be around 250m2, the sides could be around 60m2, a third of that would be easily usable, especially if it was allowed to track the sun, like a merry-go_round. A quick look at PVGIS shows that at 0.6kW/m2 it would produce around 100 MWh per year. With almost 6MWh in December. That would work out at 300 kWh per house, 10 kWh per day. That would pay for 3 bath fulls of water, or heat my house for a day. Well worth cutting a tree down for, and the ground below could become something useful, it is currently a dog toilet. Nonsense to do, but shows what could be done quite easily and cheaply.
  19. That is quite impressive for the first week in July, though the sun only gets 54° high.
  20. While it may delay any work, there are systems in place that will allow you to carry out the work. https://www.gov.uk/party-walls-building-works
  21. That is your real problem. Apart from maybe reducing air movement a little bit, as an insulation area, not really wide enough. Probably going to have to do a mixture of internal and external insulation.
  22. I can't remember if you are going grid tied or off grid with this installation? Does that inverter island? (can't see a model number)
  23. Can you set your iPad up to do a timelaspe, or if your memory card is large enough, a long video (they can be speeded up easily enough)? https://www.howtogeek.com/226487/how-to-take-time-lapse-videos-on-iphone-or-ipad/ Just make sure it is on charge all night tonight.
×
×
  • Create New...