# raspberrypi **Repository Path**: uevol/raspberrypi ## Basic Information - **Project Name**: raspberrypi - **Description**: 1、将dht22与树莓派相应io脚相连,用c语言从dht22温湿度传感器读取温湿度数据。 2、使用ruby将读取的温湿度数据保存到sqlite3数据库中 3、创建基于ruby on rails的应用,将数据库中的数据使用highcharts图表在浏览器 中展示出来。离线时可独立运行,联网可远程查看。 - **Primary Language**: Ruby - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2016-02-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #raspberrypi+dht22 1、从dht22温湿度传感器读取温湿度并保存到sqlite3数据库中。 2、创建ruby on rails的应用程序,使用hightcharts图标将收集到温湿度展示出来。 #更换镜像源 gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/ $ gem sources -l *** CURRENT SOURCES *** https://ruby.taobao.org 请确保只有 ruby.taobao.org #环境安装 #1. rvm安装 (1)\curl -sSL https://get.rvm.io | bash -s -- --ignore-dotfiles (2)echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile (3)source /etc/profile (4)source ~/.rvm/scripts/rvm (5)type rvm | head -n 1 结果:rvm is a function #2.install ruby (1)rvm list known (2)rvm install version #3.install rails (1)gem -v (2)gem install rails