Project showcase
Traffic and Emission Control System

Traffic and Emission Control System

Different emission-gauges share the details of their respective vehicles’ emissions, with the server, where the data is consolidated & used.

  • 1,597 views
  • 0 comments
  • 9 respects

Components and supplies

Necessary tools and machines

Lasercutter
Laser cutter (generic)

Apps and online services

About this project

Traffic congestion is the chief reason for air pollution in Delhi and there is no system in place which can predict and measure vehicle emission and traffic in real-time, to reduce air pollution. TRAECY consists of an emission sensing component and a location and velocity tracker: which will be embedded in cars, a transportation-centric integrated navigation (iN) system and an application, which work in conjunction so as to reduce traffic congestion and ultimately reduce air pollution. TRAECY will revolutionise life for the citizens of the city. If implemented, the drivers will have to experience less traffic congestions and air pollution. The system will help in daily navigation, emergency handling and promotion of public transport. TRAECY will also help provide free WiFi all over the city. It has an immense number of applications like management of transactions at toll gates, automatic check on overspeeding, research, predictive modelling, and comprehensive data collection.

Code

Sending MQ135 DataPython
import artikcloud
from artikcloud.rest import ApiException
import sys, getopt
import time, random, json
from pprint import pprint
import Serial

def main(argv):

	DEFAULT_CONFIG_PATH = 'config.json'
  poll = Serial.readline()
	with open(DEFAULT_CONFIG_PATH, 'r') as config_file:
		config = json.load(config_file)['TECUnitConfig']
	print(config)
	
	artikcloud.configuration = artikcloud.Configuration();
	artikcloud.configuration.access_token = config['deviceToken']
	
	api_instance = artikcloud.MessagesApi()

	device_message = {}

	device_message['pollution'] = poll

	device_sdid = config['deviceId']

	ts = time.time()

	data = artikcloud.Message(device_message, device_sdid, ts)

	try:
	    pprint(artikcloud.configuration.auth_settings())

	    api_response = api_instance.send_message(data)
	    pprint(api_response)
	except ApiException as e:
	    print "Exception when calling MessagesApi->send_message: %s\n" % e


if __name__ == "__main__":
   main(sys.argv[1:])
Reading pollution data from ARTIK CloudPython
import artikcloud
from artikcloud.rest import ApiException
import sys, getopt
import time, random, json
from pprint import pprint

def main(argv):

	DEFAULT_CONFIG_PATH = 'config.json'

	with open(DEFAULT_CONFIG_PATH, 'r') as config_file:
		config = json.load(config_file)['TECUnitConfig']
	print(config)

	artikcloud.configuration = artikcloud.Configuration();
	artikcloud.configuration.access_token = config['deviceToken']

	api_instance = artikcloud.MessagesApi()

	sdids = config['pollution'] 
	try:
	    pprint(artikcloud.configuration.auth_settings())
	    api_response = api_instance.get_last_normalized_messages(sdids=sdids)
	    pprint(api_response)
	except ApiException as e:
	    print "Exception when calling MessagesApi->get_last_normalized_messages: %s\n" % e


if __name__ == "__main__":
   main(sys.argv[1:])
Contact GitHub API Training Shop Blog About
© 2016 GitHub, Inc. Terms Privacy Security Status Help

Schematics

Laser cutting template
Capture
Schematic
Whatsapp%20image%202016 10 10%20at%2011.58.18%20am

Comments

Similar projects you might like

Smart Traffic Light

Project showcase by Fady Tarek

  • 8,067 views
  • 8 comments
  • 19 respects

Homotica - a simple, cost-effective home control system

Project showcase by Davide Vertuani

  • 43,462 views
  • 16 comments
  • 137 respects

The hydroMazing Smart Garden System

Project tutorial by Cory Potter

  • 24,982 views
  • 14 comments
  • 115 respects

Blinds (Or Any AC Power Motor) Control

Project tutorial by gomecin

  • 11,583 views
  • 23 comments
  • 54 respects

Smart Parking System

Project tutorial by Husinul

  • 9,589 views
  • 14 comments
  • 23 respects

Control your light system with your voice

Project tutorial by Maha Raafat

  • 33,141 views
  • 22 comments
  • 147 respects
Add projectSign up / Login