Starting with Mongodb

Share

Installation and configuation Download following mongodb packages from https://repo.mongodb.org/yum/redhat/ Install packages: Edit /etc/mongod.conf and amend systemLog->path to desired log location and storage->dbPath to desired database location. For eg, if storage->dbPath is set to /mongodb/data, then also change owner of this directory as following: Start mongodb service and tail logs in parallel View logs: Once package […]

Nested variables in Grafana

Share

Quite often you want to use one variable of Grafana as input in query to derive next variable value set. Think of a typical example, you have 10 host machines and each host has several network interfaces. And you want to display stats of each interface of selected host. Now, when you select “host” variable […]

Air quality monitor using GP2Y1010AU0F sensor on micropython based NodeMCU

Share

I had purchased GP2Y1010AU0F sensor about 6 months back. Finally, found time to hook it with NodeMCU controller. Firstly, let me list things you need. NodeMCU (ESP8266) controller (~300₹). GP2Y1010AU0F dust/smoke sensor(~450₹). 150k ohm resistor. 220 µF capacitor. breadboard with some connecting wires. Here is the connection schema of circuit. Since solution is based on […]