mobile
mobile mobile

Website Analysis

img D3Noob.org

Last Analyzed : 01.08.2020
D3Noob.org receives any estimated 991 unique visitors and 214 unique page views per day. Revenue gained from these much visits may be $0 per day from various advertising sources. The estimated worth of site is $154. Similarweb global rank is 4,412,589. Maximum no. of users comes from .

Google LLC is ISP, hosted on IP 216.239.38.21 in Country United States.

  • Website Age n/a
  • Alexa Rank no-data
  • Country imgUnited States
  • IP Address 216.239.38.21
META INFORMATION icon
Title
D3.js Tips and Tricks
Description
This blog is a place for presenting information from the books D3 Tips and tricks, Leaflet Tips and Tricks and Raspberry Pi: Measure, Record, Explore.
Keywords
-
Content Type
utf-8
No Meta Name Value
1 viewport width=1100
GENERAL HTML INFORMATION icon
Type Status
HTML 5 img
Responsive Website img
HTML SIZE INFORMATION icon
Text / Code Ratio 17.10 %
d3noob.org has a website text/code ratio of 17.10 %. Search engine crawlers tend to not pick up pages with inadequate content.
IMPORTANT HTML TAGS AND COUNTS icon
Titles icon
  • H114
  • H211
  • H314
  • H410
  • H50
  • H60
H1
No Text
1 Aim
2 The aim of the project is to provide visibility of when the pump from the outflow chamber of a septic system is operating. then if it is running for too long we want to be sent an alert to notify us as this is a potential indicator of a problem (blockage leading to overflow).
3 The method that we will use to achieve this will be to measure the current flowing to the pump and to make that data available to a prometheus / grafana instance that will then be used for visibility / alerting.
4 This project will be leveraging analready installed instance of prometheus / grafana. an established wifi network for connectivity. access to some soldering equipment
5 Current sensor: an acs712 based module. we'll use a 5a unit since the pump is not expected to exceed 500w. analog to digital converter: the ads1015 will be more than sufficient for our needs. enclosures: the current sensor must be protected to prevent contact with the live terminals. the a2d converter should be protected where possible. voltage divider: we will use three 1k ohm resistors. wiring: hook up wires with female dupont connectors and appropriate wiring for the load connection (ı used 2.5mm cabling) compute: raspberry pi zero w with case, micro sd card, case and headers.
6 This project is one that has been born out of necessity. our septic system is a good unit that operates as required however, there have been a few occasions where we have had the outflow from the final chamber blocked for one reason or another (and there have been a variation here). the end result of this has been the increase in water level in the final chamber. ın two cases this has not been caught in spite of the inbuilt alarm (that uses a float switch and an annunciator in the garage) resulting in the septic system flooding (not good). to add some redundancy to the system and to provide remote alerting capability ı decided to add my own alerting system. ı considered a couple of different options including; looking at the outflow from the septic tank and measuring the volume of water pumped. while possible, this option involves moving parts in a portion of the system that is space constrained and the method for alerting would involve determining theabsenceof a thing over a period of time that would be indeterminate. an additional (but different) float switch in the final chamber. this was practical and do-able, but the environment is fairly harsh (water, humidity, 'stuff') and it would have been an alert that occurs later in the process of failure (similar to the default installed alarm which once had its float get stuck and failed to alert properly) current sensing for the pump operation. this has the advantage of providing very quick feedback if there is a problem and keeps any measurement in a 'cleaner' space. the down side is that this does mean connecting a sensor to a high voltage part of an electrical circuit and therefore requires doing the work within local regulations and taking the appropriate safety precautions. ı opted for the current sensing option since it was the best of the three options in terms of getting a good result (early detection). ı have the advantage of being a registered electrical service technician and therefore am able to do the work safely and appropriately.
7 The current sensor we will use is based on the acs712 module. ı sourced mine frombanggood, but they are widely available for low cost. this specific one used here is the acs712elc-05b which can measure plus or minus 5 amps corresponding to an analog output of 185 mv/a. the unit is powered from a 5v supply, so we will be connecting it to a 5v output from the pi and using a voltage divider to reduce the voltage output appropriately for input to the analog to digital converter ıf you have access to a 3d printer, you can print an enclosure from the designhere. to enable the current sensing option we will also need to include a digital to analog converter. this should be a fairly simple task similar to the method usedherefor measuring levels from a gas sensor. ıf you have access to a 3d printer, you can print an enclosure for the d2a converter from the designhere. the connection layout is as below (again very similar to the methodhere);
8 The installation below was carried out using the raspbian 'buster' os. this is available from theraspberry pi website. ınstall the os onto an sd card and power up the pi. the first thing we should do is to configure the pi appropriately for use. some of the steps may or may not be needed depending on your circ***stances (i.e. will you be using a model pi with a physical ethernet connection or wifi). where in doubt check out one of theraspberry pi computing bookswhich will walk through the options. we can start by running the command; sudo raspi-config this will give us access to the options for localisation (wifi country, time-zone, locale) but most importantly (in this case) for enabling the ı2c protocol. since the ads1015 uses the ı2c protocol to communicate, we need to load the appropriate kernel support modules onto the raspberry pi to allow this to happen. since we are using the raspbian distribution there is a simple method to start the process of configuring the pi to use the ı2c protocol. on the first page select the ınterfacing options with the arrow keys and then tab to select then we select the ı2c option for automatic loading of the kernel module; would we like the arm ı2c interface to be enabled? yes we would; press 'ok' to acknowledge that the interface is enabled. press tab to select 'finish'. once this is done we should do what we should always do when embarking on a fresh install on a raspberry pi and that's to update and upgrade the software. sudo apt-get update sudo apt-get upgrade from here, you should look to configuring a static ıp address or a wifi connection if desired. again, where in doubt check out one of theraspberry pi computing booksfor options.
9 There's still some work to do to get things sorted, especially for the ı2c functionality. we need to check the/etc/modulesfile using: sudo nano /etc/modules where we need to ensure that the following line is at the end of the file: i2c-dev under some circ***stances (depending on the kernel version we are using) we would also need to update the/boot/config.txtfile. we can do this using; sudo nano /boot/config.txt make sure that the following line is uncommented (the '#' is removed from in front of the line) in the file; dtparam=i2c_arm=on then we should load tools for working with ı2c devices using the following command; sudo apt-get install i2c-tools ... and now we should reboot to load the 'config.txt' file if we changed it earlier sudo reboot we can now check to see if our sensor is working using; sudo i2cdetect -y 1 ıf we were using an older b model of raspberry pi with 256mb of ram, we would need to usesudo i2cdetect -y 0. the output should look something like; pi@raspberrypi ~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- this shows us that we have detected our ads1015 on address '48' (the ads1015 can support four different addresses as shown on page 17 of thedata sheet). now we want to install the python libraries designed to read the values from the ads1015. the library we are going to use was designed specifically to work with theadafruit ads1015/ads1115 adcs. ın carrying out this library development, adafruit have invested a considerable amount of time and resources. ın return please consider supporting adafruit and open-source hardware by purchasing products fromadafruit! we need to change our default version of python running on the pi to python 3 we can check what version is running by executing the following command; python --version ıf that indicates python 2.x, then we need to change that. to find out what version of python 3 is available, run the following ls /usr/bin/python* hopefully you will see a 3.x version. to change the default python version system-wide we can use theupdate-alternativescommand. first list all available python alternatives; update-alternatives --list python there is a good chance that the output will be something like; update-alternatives: error: no alternatives for python the above error message means that no python alternatives have been recognised by theupdate-alternativescommand. for this reason we need to update our alternatives table and include both python 2 and 3. just check that the numbers for the versions in the commands below match the versions that the previous command indicated were installed. sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2 the last number on each of the previous lines is the priority, with the higher number being thehighest priority we can check again by running; python --version now the default version should be python 3 ınstall pip3 (for python 3) sudo apt-get install python3-pip then install setuptools via pip sudo pip3 install --upgrade setuptools ınstall python libraries pip3 install rpı.gpıo adafruit-blinka ınstall the adc libraries (note: ı occasionally get errors when carrying out the following command and need to re-run it a few times); sudo pip3 install adafruit-circuitpython-ads1x15 we should now be able to run a simple program to test our sensor. create a file calledcurrent-test.py(usingnano) with the following contents in the home directory (this code can be downloaded from githubhere); #!/usr/bin/python #encoding:utf-8 import time import board import busio import adafruit_ads1x15.ads1015 as ads from adafruit_ads1x15.analog_in import analogın # create the ı2c bus i2c = busio.ı2c(board.scl, board.sda) # create the adc object using the ı2c bus ads = ads.ads1015(i2c) ads.gain = 1 # create single-ended input on channel 0 chan = analogın(ads, ads.p0) # create differential input between channel 0 and 1 #chan = analogın(ads, ads.p0, ads.p1) print("{:>5}\t{:>5}".format('raw', 'v')) while true: readvalue = 0 maxvalue = 0 for i in range(0,300): readvalue = chan.value if (readvalue > maxvalue): maxvalue = readvalue # write the current integer value to a file f = open("current.txt", "w") f.write(str(maxvalue-6680)) f.close() print("{:>5}\t{:>5.5f}".format(maxvalue-6680, chan.voltage)) time.sleep(0.5) the file above is essentially thesimpletest.pyfile that adafruit publish with some amendments. one of these is that we are only looking at an instantaneous measurement of current. for ac current that could be anywhere along the sine wave in a positive or negative direction. the solution (which is in the code) is to put in a small loop that determines the maximum value while the loop is running. this indicates the peak value in one direction. as well as this we can reduce the gain and put in an offset that allows our returned value to read close to zero with no current flowing. ıt also includes a small section that writes our current value to a text file. we will use this to contain our value to pa*** onto prometheus / grafana for monitoring later. now we can run it using python current-test.py we should see a print out of the values represented by the value of the adc as an integer and the voltage from the adc as a floating point value (this is without any current flowing in our sensor). raw v -8 0.83203 56 0.82403 40 0.82603 56 0.82803 56 0.82403 56 0.82403 and we should also have a file (called 'current.txt') created and updated with the most recent reading.
10 ı configured the current measurement as a service as while testing the installation ı noticed that the program would occasionally fail at random times. this will allow it to restart if necessary and to start on boot. the first step in this process is to create a service file which we will callcurrent.service. we will have this in the/etc/systemd/system/directory. sudo nano /etc/systemd/system/current.service paste the following text into the file and save and exit (the file is alsoavailable from github). [unit] description=python current measurement after=multi-user.target [service] restart=on-failure restartsec=10s workingdirectory=/home/pi user=pi execstart=/usr/bin/python /home/pi/current.py [ınstall] wantedby=multi-user.target the service file can contain a wide range of configuration information and the case above there is 'restart' which will restart (duh) the service if it fails and 'execstart' which describe where to findpythonand thecurrent.pyexecutable. the other important part allows the service to restart if it fails. before starting our new service we will need to reload the systemd manager configuration again. sudo systemctl daemon-reload now we can start the current service. sudo systemctl start current you shouldn't see any indication at the terminal that things have gone well (or otherwise), so it's a good idea to check current's status as follows; sudo systemctl status current we should see a report back that indicates (amongst other things) that 'current' is active and running. now we will enable it to start on boot. sudo systemctl enable current
H2
No Text
1 Raspberry pi swag
2 Thursday, 16 july 2020
3 Thursday, 21 may 2020
4 Sunday, 26 april 2020
5 Method
6 D3 tips and tricks
7 Raspberry pi: measure, record, explore
8 Download d3 tips and tricks examples
9 D3 tips and tricks on amazon
10 Leaflet tips and tricks
H3
No Text
1 Controlling the activity led on a raspberry pi
2 Turn the activity light on or off
3 Upgrading prometheus after installing as a binary
4 Download
5 Stop the services
6 Copy the configuration and data
7 Run the new version manually and test
8 Stop the newer version
9 Change the directory names
10 Start the services.
H4
No Text
1 Cut to the chase and just do it
2 The explanation of how it works
3 Equipment
4 Operating system setup
5 Software setup
6 Create a service to run our python file
7 ıntegrate with prometheus / grafana
8 Adding adding our custom exporter to prometheus
9 Make a graph in grafana
10 Add an alert
Text Styling icon
  • STRONG6
  • B0
  • EM5
  • I0
  • U0
  • CITE0
STRONG
No Text
1 Current Sensor
2 Analog to Digital Converter
3 Enclosures
4 Voltage divider
5 Wiring
6 Compute
EM
No Text
1 which
2 absence (2)
3 and
4 stuff
WEBSITE SERVER INFORMATION icon
  • Service Provider (ISP)
  • Google LLC
  • Hosted IP Address
  • 216.239.38.21
  • Hosted Country
  • imgUnited States
  • Host Region
  • California , Oakland
  • Latitude and Longitude
  • 37.8043 : -122.2156
WEBSITES USING THE SAME IP ADDRESS
Icon Domain IP Alexa Rank
img Ringblaze.com img216.239.38.21 185.226
img Andnextcomesl.com img216.239.38.21 162.002
img Ztech2You.com img216.239.38.21 268.300
img Jbsolis.com img216.239.38.21 529.105
img Mosttechs.com img216.239.38.21 105.507
img Aartedenewtonavelino.com img216.239.38.21 90.794
img Gabaritandovestibular.com img216.239.38.21 175.778
img Zrapply.com img216.239.38.21 686.067
img Agilefingers.com img216.239.38.21 256.250
img Lerzankaradan.com img216.239.38.21 110.533
img Stationgossip.com img216.239.38.21 280.733
img Atividadesdecaligrafia.com img216.239.38.21 2.038.994
img Knysims.com.br img216.239.38.21 72.212
img Realworldfatos.com img216.239.38.21 373.385
img Press-Gr.com img216.239.38.21 155.458
img Wheresmydroid.com img216.239.38.21 793.893
img Thehollywoodgossip.com img216.239.38.21 55.809
img Ns3R.com img216.239.38.21 182.379
img Bonbast.com img216.239.38.21 35.477
img Tahiaamisr.com img216.239.38.21 507.238
img Transurfing-Real.ru img216.239.38.21 240.643
img Tvfanatic.com img216.239.38.21 24.049
img Rvinyl.com img216.239.38.21 124.729
img Swayam.gov.in img216.239.38.21 16.701
img Crazydaysandnights.net img216.239.38.21 49.041
img Trackcourier.io img216.239.38.21 50.935
img Leebya.com img216.239.38.21 2.241.365
img Statuslarim.com img216.239.38.21 284.121
img Artecomquiane.com img216.239.38.21 708.539
img Diabrasilnews.xyz img216.239.38.21 161.030
img Itziptv.com img216.239.38.21 2.264.122
img Nossotecnoblogger.com img216.239.38.21 738.902
img Gelora.co img216.239.38.21 48.895
img Taalblobs.nl img216.239.38.21 320.049
img Thinkwave.com img216.239.38.21 51.564
img Instanano.com img216.239.38.21 394.499
img Balloon-Corner.com img216.239.38.21 274.145
img Elethos.gr img216.239.38.21 177.672
img Kaos.gr img216.239.38.21 173.060
img Mcsweeneys.net img216.239.38.21 -
img Elkratos.gr img216.239.38.21 177.264
img Thehumortrain.com img216.239.38.21 405.118
img Almohtarif-Tech.net img216.239.38.21 73.142
img Electrical-Knowhow.com img216.239.38.21 253.543
img Tes***nfo.com img216.239.38.21 907.514
img Lfkoweit.edu.kw img216.239.38.21 337.261
img Crackjee.xyz img216.239.38.21 269.085
img Airconsole.com img216.239.38.21 41.349
img Negociosyemprendimiento.org img216.239.38.21 98.609
img Ilankainet.com img216.239.38.21 93.939
img Boutir.com img216.239.38.21 73.377
img Kremenets.pp.ua img216.239.38.21 1.373.345
img Marketyemen.com img216.239.38.21 421.351
img Textifier.net img216.239.38.21 198.189
img Saltireawards.scot img216.239.38.21 213.381
img Way2Themes.com img216.239.38.21 80.286
img Table-Games-Online.com img216.239.38.21 297.688
img Erwachen-Shop.com img216.239.38.21 393.287
img Mahfiegilmez.com img216.239.38.21 135.155
img Dailynewskerala.in img216.239.38.21 325.921
img Hindisahityadarpan.in img216.239.38.21 54.245
img Kauaidelivery.com img216.239.38.21 1.334.781
img Varadhja.in img216.239.38.21 1.603.959
img Spritecranberry.net img216.239.38.21 -
img Tcmf.com.au img216.239.38.21 -
img Rightnowintech.com img216.239.38.21 3.149.549
img Csfieldguide.org.nz img216.239.38.21 730.955
img Wewither.com img216.239.38.21 -
img Composingprograms.com img216.239.38.21 414.501
img Existentialennui.com img216.239.38.21 -
img Ecominoes.com img216.239.38.21 -
img Analizeeconomice.ro img216.239.38.21 10.563.135
img Thehive.asia img216.239.38.21 1.172.037
img Pychess.org img216.239.38.21 614.443
img Workshoptwelve.com img216.239.38.21 4.174.612
img Behind-The-Enemy-Lines.com img216.239.38.21 2.799.728
img Jspro.org img216.239.38.21 -
img Hecfblog.com img216.239.38.21 5.490.186
img Nekst.me img216.239.38.21 -
img Noh****o.com img216.239.38.21 731.038
img Ccil.org img216.239.38.21 9.184.858
img Hitpages.com img216.239.38.21 -
img Kleefeldoncomics.com img216.239.38.21 3.081.141
img Savethespeedway.net img216.239.38.21 -
img Nacionrotonda.com img216.239.38.21 4.879.987
img Lgtm.com img216.239.38.21 617.493
img Thechicagosyndicate.com img216.239.38.21 2.179.163
img Mxnet.io img216.239.38.21 215.115
img Pocketnewsalert.com img216.239.38.21 359.560
img Aquarium-Pond-Answers.com img216.239.38.21 1.648.126
img Cargodecoder.com img216.239.38.21 -
img Proclaimerscv.com img216.239.38.21 -
img Vanillagarlic.com img216.239.38.21 4.384.009
img Wherearethechildren.ca img216.239.38.21 4.762.074
img Saintsinrome.com img216.239.38.21 7.647.443
img Tidewaterandtulle.com img216.239.38.21 1.141.686
img Localmarketingvoice.com img216.239.38.21 7.199.146
img Travell.best img216.239.38.21 -
img Tamilrockers.wiki img216.239.38.21 117.705
img Swaflix.ga img216.239.38.21 3.977.494
img Freeadsgroups.com img216.239.38.21 1.694.373
img Ekonwae.my.id img216.239.38.21 -
img Youtubethumbnaildownloaderonline.com img216.239.38.21 -
img Writtenupdatez.com img216.239.38.21 -
img Mprogaming.com img216.239.38.21 -
img Ftuapps.me img216.239.38.21 -

SHARE THIS ANALYSIS