tinderfridge 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tinderfridge/device.rb +4 -0
- data/lib/tinderfridge/device_info.txt +3 -0
- data/lib/tinderfridge/devices/brick_hat/brick_hat.json +2 -1
- data/lib/tinderfridge/devices/brick_hat_zero/brick_hat_zero.json +2 -1
- data/lib/tinderfridge/devices/bricklet_air_quality/bricklet_air_quality.json +8 -1
- data/lib/tinderfridge/devices/bricklet_ambient_light_v3/bricklet_ambient_light_v3.json +8 -1
- data/lib/tinderfridge/devices/bricklet_analog_in_v3/bricklet_analog_in_v3.json +10 -0
- data/lib/tinderfridge/devices/bricklet_analog_out_v3/bricklet_analog_out_v3.json +10 -0
- data/lib/tinderfridge/devices/bricklet_barometer_v2/bricklet_barometer_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_can_v2/bricklet_can_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_co2_v2/bricklet_co2_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_color_v2/bricklet_color_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_compass/bricklet_compass.json +10 -0
- data/lib/tinderfridge/devices/bricklet_dc_v2/bricklet_dc_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_distance_us_v2/bricklet_distance_us_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_dmx/bricklet_dmx.json +8 -1
- data/lib/tinderfridge/devices/bricklet_e_paper_296x128/bricklet_e_paper_296x128.json +10 -0
- data/lib/tinderfridge/devices/bricklet_energy_monitor/bricklet_energy_monitor.json +10 -0
- data/lib/tinderfridge/devices/bricklet_gps_v2/bricklet_gps_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_hall_effect_v2/bricklet_hall_effect_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_humidity_v2/bricklet_humidity_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_imu_v3/bricklet_imu_v3.json +8 -1
- data/lib/tinderfridge/devices/bricklet_industrial_counter/bricklet_industrial_counter.json +11 -0
- data/lib/tinderfridge/devices/bricklet_industrial_digital_in_4_v2/bricklet_industrial_digital_in_4_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_industrial_digital_out_4_v2/bricklet_industrial_digital_out_4_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_industrial_dual_relay/bricklet_industrial_dual_relay.json +8 -1
- data/lib/tinderfridge/devices/bricklet_industrial_ptc/bricklet_industrial_ptc.json +11 -0
- data/lib/tinderfridge/devices/bricklet_industrial_quad_relay_v2/bricklet_industrial_quad_relay_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_isolator/bricklet_isolator.json +8 -1
- data/lib/tinderfridge/devices/bricklet_joystick_v2/bricklet_joystick_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_laser_range_finder_v2/bricklet_laser_range_finder_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_lcd_128x64/bricklet_lcd_128x64.json +8 -1
- data/lib/tinderfridge/devices/bricklet_led_strip_v2/bricklet_led_strip_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_linear_poti_v2/bricklet_linear_poti_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_motion_detector_v2/bricklet_motion_detector_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_motorized_linear_poti/bricklet_motorized_linear_poti.json +8 -1
- data/lib/tinderfridge/devices/bricklet_multi_touch_v2/bricklet_multi_touch_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_nfc/bricklet_nfc.json +8 -1
- data/lib/tinderfridge/devices/bricklet_oled_128x64_v2/bricklet_oled_128x64_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_outdoor_weather/bricklet_outdoor_weather.json +8 -1
- data/lib/tinderfridge/devices/bricklet_performance_dc/bricklet_performance_dc.json +9 -1
- data/lib/tinderfridge/devices/bricklet_piezo_speaker_v2/bricklet_piezo_speaker_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_real_time_clock_v2/bricklet_real_time_clock_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_remote_switch_v2/bricklet_remote_switch_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_rgb_led_button/bricklet_rgb_led_button.json +8 -1
- data/lib/tinderfridge/devices/bricklet_rgb_led_v2/bricklet_rgb_led_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_rotary_encoder_v2/bricklet_rotary_encoder_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_rotary_poti_v2/bricklet_rotary_poti_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_rs232_v2/bricklet_rs232_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_rs485/bricklet_rs485.json +11 -0
- data/lib/tinderfridge/devices/bricklet_segment_display_4x7_v2/bricklet_segment_display_4x7_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_servo_v2/bricklet_servo_v2.json +9 -1
- data/lib/tinderfridge/devices/bricklet_silent_stepper_v2/bricklet_silent_stepper_v2.json +11 -0
- data/lib/tinderfridge/devices/bricklet_sound_pressure_level/bricklet_sound_pressure_level.json +10 -0
- data/lib/tinderfridge/devices/bricklet_temperature_ir_v2/bricklet_temperature_ir_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_temperature_v2/bricklet_temperature_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_thermal_imaging/bricklet_thermal_imaging.json +10 -0
- data/lib/tinderfridge/devices/bricklet_thermocouple_v2/bricklet_thermocouple_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_uv_light_v2/bricklet_uv_light_v2.json +10 -0
- data/lib/tinderfridge/devices/bricklet_voltage_current_v2/bricklet_voltage_current_v2.json +8 -1
- data/lib/tinderfridge/devices/bricklet_xmc1400_breakout/bricklet_xmc1400_breakout.json +10 -0
- data/lib/tinderfridge/ip_connection.rb +23 -18
- data/lib/tinderfridge/version.rb +1 -1
- metadata +41 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61c196b035feb056ef219545b4fb18b0d31143ec45dce191fd24abba736c6c06
|
4
|
+
data.tar.gz: b8f7e262293e0c1f42648f57360818bc160bef744d3bf4e1424c31f81658fe84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68b64abcf925c879f4962b505c4ae06b9cdf3d4fad9964c34e1d33cbe1dc72fffee805a7a1651fe9b4d0cdc3c2c93a53a593dafdc0ad28f8fea93e20a3fc2c0b
|
7
|
+
data.tar.gz: b3a2980b1f8d21b9044b59b8e40b62bf148fc5a18505b3391f1c7047796df5139e2782e50872cac01acf1a29bb8b52cfe14fea0fca8b706c9a6fb3d120ebbfc5
|
data/lib/tinderfridge/device.rb
CHANGED
@@ -139,3 +139,6 @@
|
|
139
139
|
2157 Servo Bricklet 2.0 Tinkerforge::BrickletServoV2 bricklet_servo_v2
|
140
140
|
2161 IMU Bricklet 3.0 Tinkerforge::BrickletIMUV3 bricklet_imu_v3
|
141
141
|
2162 Industrial Dual AC Relay Bricklet Tinkerforge::BrickletIndustrialDualACRelay bricklet_industrial_dual_ac_relay
|
142
|
+
2164 Industrial PTC Bricklet Tinkerforge::BrickletIndustrialPTC bricklet_industrial_ptc
|
143
|
+
2165 DC Bricklet 2.0 Tinkerforge::BrickletDCV2 bricklet_dc_v2
|
144
|
+
2166 Silent Stepper Bricklet 2.0 Tinkerforge::BrickletSilentStepperV2 bricklet_silent_stepper_v2
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
20,
|
5
|
+
5
|
6
|
+
],
|
7
|
+
"weight": 2.1,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Air_Quality.html",
|
9
|
+
"versions_identifier": "bricklets:air_quality"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
15,
|
5
|
+
5
|
6
|
+
],
|
7
|
+
"weight": 2,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Ambient_Light_V3.html",
|
9
|
+
"versions_identifier": "bricklets:ambient_light_v3"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
20,
|
5
|
+
5
|
6
|
+
],
|
7
|
+
"weight": 2,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Color_V2.html",
|
9
|
+
"versions_identifier": "bricklets:color_v2"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
60,
|
4
|
+
50,
|
5
|
+
30
|
6
|
+
],
|
7
|
+
"weight": 30,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/DMX.html",
|
9
|
+
"versions_identifier": "bricklets:dmx"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
40,
|
4
|
+
35,
|
5
|
+
12
|
6
|
+
],
|
7
|
+
"weight": 20,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/GPS_V2.html",
|
9
|
+
"versions_identifier": "bricklets:gps_v2"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
25,
|
5
|
+
5
|
6
|
+
],
|
7
|
+
"weight": 3,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/IMU_V3.html",
|
9
|
+
"versions_identifier": "bricklets:imu_v3"
|
3
10
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"dimensions": [
|
3
|
+
40,
|
4
|
+
40,
|
5
|
+
11
|
6
|
+
],
|
7
|
+
"weight": 8.6,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Industrial_Digital_In_4_V2.html",
|
9
|
+
"versions_identifier": "bricklets:industrial_digital_in_4_v2",
|
10
|
+
"released": "2018-06-07"
|
11
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"dimensions": [
|
3
|
+
40,
|
4
|
+
40,
|
5
|
+
14
|
6
|
+
],
|
7
|
+
"weight": 10,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Industrial_Digital_Out_4_V2.html",
|
9
|
+
"versions_identifier": "bricklets:industrial_digital_out_4_v2",
|
10
|
+
"released": "2018-09-27"
|
11
|
+
}
|
data/lib/tinderfridge/devices/bricklet_industrial_dual_relay/bricklet_industrial_dual_relay.json
CHANGED
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
40,
|
4
|
+
40,
|
5
|
+
25
|
6
|
+
],
|
7
|
+
"weight": 29.4,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Industrial_Dual_Relay.html",
|
9
|
+
"versions_identifier": "bricklets:industrial_dual_relay"
|
3
10
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"dimensions": [
|
3
|
+
40,
|
4
|
+
40,
|
5
|
+
11
|
6
|
+
],
|
7
|
+
"weight": 9,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Industrial_Quad_Relay_V2.html",
|
9
|
+
"versions_identifier": "bricklets:industrial_quad_relay_v2",
|
10
|
+
"released": "2018-06-07"
|
11
|
+
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
30,
|
4
|
+
40,
|
5
|
+
15
|
6
|
+
],
|
7
|
+
"weight": 7.1,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Isolator.html",
|
9
|
+
"versions_identifier": "bricklets:isolator"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
45,
|
5
|
+
23
|
6
|
+
],
|
7
|
+
"weight": 15,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Joystick_V2.html",
|
9
|
+
"versions_identifier": "bricklets:joystick_v2"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
55,
|
4
|
+
85,
|
5
|
+
8
|
6
|
+
],
|
7
|
+
"weight": 55,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/LCD_128x64.html",
|
9
|
+
"versions_identifier": "bricklets:lcd_128x64"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
30,
|
4
|
+
30,
|
5
|
+
12
|
6
|
+
],
|
7
|
+
"weight": 8.1,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/LED_Strip_V2.html",
|
9
|
+
"versions_identifier": "bricklets:led_strip_v2"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
45,
|
5
|
+
30
|
6
|
+
],
|
7
|
+
"weight": 6,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Motion_Detector_V2.html",
|
9
|
+
"versions_identifier": "bricklets:motion_detector_v2"
|
3
10
|
}
|
data/lib/tinderfridge/devices/bricklet_motorized_linear_poti/bricklet_motorized_linear_poti.json
CHANGED
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
145,
|
4
|
+
20,
|
5
|
+
28
|
6
|
+
],
|
7
|
+
"weight": 67,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Motorized_Linear_Poti.html",
|
9
|
+
"versions_identifier": "bricklets:motorized_linear_poti"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
30,
|
4
|
+
25,
|
5
|
+
7
|
6
|
+
],
|
7
|
+
"weight": 4,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Multi_Touch_V2.html",
|
9
|
+
"versions_identifier": "bricklets:multi_touch_v2"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
85,
|
4
|
+
50,
|
5
|
+
7
|
6
|
+
],
|
7
|
+
"weight": 18,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/NFC.html",
|
9
|
+
"versions_identifier": "bricklets:nfc"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
40,
|
4
|
+
35,
|
5
|
+
5
|
6
|
+
],
|
7
|
+
"weight": 10,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Outdoor_Weather.html",
|
9
|
+
"versions_identifier": "bricklets:outdoor_weather"
|
3
10
|
}
|
@@ -1,3 +1,11 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
80,
|
4
|
+
80,
|
5
|
+
22
|
6
|
+
],
|
7
|
+
"weight": 50,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Performance_DC.html",
|
9
|
+
"versions_identifier": "bricklets:performance_dc",
|
10
|
+
"released": "2021-01-14"
|
3
11
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
40,
|
5
|
+
5
|
6
|
+
],
|
7
|
+
"weight": 8,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Remote_Switch_V2.html",
|
9
|
+
"versions_identifier": "bricklets:remote_switch_v2"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
25,
|
5
|
+
30
|
6
|
+
],
|
7
|
+
"weight": 7,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/RGB_LED_Button.html",
|
9
|
+
"versions_identifier": "bricklets:rgb_led_button"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
20,
|
5
|
+
5
|
6
|
+
],
|
7
|
+
"weight": 3,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/RGB_LED_V2.html",
|
9
|
+
"versions_identifier": "bricklets:rgb_led_v2"
|
3
10
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
30,
|
4
|
+
25,
|
5
|
+
23
|
6
|
+
],
|
7
|
+
"weight": 6,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Rotary_Encoder_V2.html",
|
9
|
+
"versions_identifier": "bricklets:rotary_encoder_v2"
|
3
10
|
}
|
data/lib/tinderfridge/devices/bricklet_segment_display_4x7_v2/bricklet_segment_display_4x7_v2.json
CHANGED
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
25,
|
4
|
+
65,
|
5
|
+
9
|
6
|
+
],
|
7
|
+
"weight": 11,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Segment_Display_4x7_V2.html",
|
9
|
+
"versions_identifier": "bricklets:segment_display_4x7_v2"
|
3
10
|
}
|
@@ -1,3 +1,11 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
40,
|
4
|
+
40,
|
5
|
+
10
|
6
|
+
],
|
7
|
+
"weight": 9,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Servo_V2.html",
|
9
|
+
"versions_identifier": "bricklets:servo_v2",
|
10
|
+
"released": "2021-01-14"
|
3
11
|
}
|
@@ -1,3 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"dimensions": [
|
3
|
+
30,
|
4
|
+
30,
|
5
|
+
18
|
6
|
+
],
|
7
|
+
"weight": 10,
|
8
|
+
"documentation_en_url": "https://www.tinkerforge.com/en/doc/Hardware/Bricklets/Voltage_Current_V2.html",
|
9
|
+
"versions_identifier": "bricklets:voltage_current_v2"
|
3
10
|
}
|
@@ -20,9 +20,11 @@ module Tinkerforge
|
|
20
20
|
{
|
21
21
|
'host' => host,
|
22
22
|
'port' => port,
|
23
|
+
'update_time' => Time.now.gmtime,
|
23
24
|
'connection_state' => get_connection_state,
|
24
25
|
'auto_reconnect' => get_auto_reconnect,
|
25
26
|
'timeout' => get_timeout,
|
27
|
+
'log_path' => log_path,
|
26
28
|
'log_size' => log_size,
|
27
29
|
}
|
28
30
|
end
|
@@ -32,11 +34,28 @@ module Tinkerforge
|
|
32
34
|
@localhost ||= %w(localhost 127.0.0.1 ::1).include? host
|
33
35
|
end
|
34
36
|
|
35
|
-
# Returns the
|
37
|
+
# Returns the path for the Brick Daemon log file. Nil if connected to Brickd via the network.
|
38
|
+
def log_path
|
39
|
+
unless defined? @local_log_path
|
40
|
+
@local_log_path =
|
41
|
+
if localhost?
|
42
|
+
if Gem.win_platform?
|
43
|
+
'C:\ProgramData\Tinkerforge\Brickd\brickd.log'
|
44
|
+
else
|
45
|
+
'/var/log/brickd.log'
|
46
|
+
end
|
47
|
+
else
|
48
|
+
nil
|
49
|
+
end
|
50
|
+
end
|
51
|
+
@local_log_path
|
52
|
+
end
|
53
|
+
|
54
|
+
# Returns the size (in bytes) of the Brick Daemon log file. Nil if connected to Brickd via the network.
|
36
55
|
def log_size
|
37
|
-
if
|
38
|
-
if File.exist?
|
39
|
-
File.size
|
56
|
+
if log_path
|
57
|
+
if File.exist? log_path
|
58
|
+
File.size log_path
|
40
59
|
else
|
41
60
|
0
|
42
61
|
end
|
@@ -85,20 +104,6 @@ module Tinkerforge
|
|
85
104
|
|
86
105
|
private
|
87
106
|
|
88
|
-
# The path for the Brick Daemon log file, if connected to Brickd on the same computer.
|
89
|
-
def local_log_path
|
90
|
-
@local_log_path ||=
|
91
|
-
if localhost?
|
92
|
-
if Gem.win_platform?
|
93
|
-
'C:\ProgramData\Tinkerforge\Brickd\brickd.log'
|
94
|
-
else
|
95
|
-
'/var/log/brickd.log'
|
96
|
-
end
|
97
|
-
else
|
98
|
-
nil
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
107
|
# Takes the args supplied by an enumeration callback, and returns a device instance.
|
103
108
|
def device_instance_from_enum_data(enum_data)
|
104
109
|
if dev_info = Tinkerforge.device_info(enum_data[5])
|
data/lib/tinderfridge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tinderfridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lllist.eu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tinkerforge
|
@@ -30,8 +30,8 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.1.27
|
33
|
-
description:
|
34
|
-
email:
|
33
|
+
description:
|
34
|
+
email:
|
35
35
|
executables: []
|
36
36
|
extensions: []
|
37
37
|
extra_rdoc_files: []
|
@@ -49,23 +49,42 @@ files:
|
|
49
49
|
- lib/tinderfridge/devices/bricklet_air_quality/bricklet_air_quality.rb
|
50
50
|
- lib/tinderfridge/devices/bricklet_ambient_light_v3/bricklet_ambient_light_v3.json
|
51
51
|
- lib/tinderfridge/devices/bricklet_ambient_light_v3/bricklet_ambient_light_v3.rb
|
52
|
+
- lib/tinderfridge/devices/bricklet_analog_in_v3/bricklet_analog_in_v3.json
|
53
|
+
- lib/tinderfridge/devices/bricklet_analog_out_v3/bricklet_analog_out_v3.json
|
54
|
+
- lib/tinderfridge/devices/bricklet_barometer_v2/bricklet_barometer_v2.json
|
55
|
+
- lib/tinderfridge/devices/bricklet_can_v2/bricklet_can_v2.json
|
56
|
+
- lib/tinderfridge/devices/bricklet_co2_v2/bricklet_co2_v2.json
|
52
57
|
- lib/tinderfridge/devices/bricklet_color_v2/bricklet_color_v2.json
|
53
58
|
- lib/tinderfridge/devices/bricklet_color_v2/bricklet_color_v2.rb
|
59
|
+
- lib/tinderfridge/devices/bricklet_compass/bricklet_compass.json
|
60
|
+
- lib/tinderfridge/devices/bricklet_dc_v2/bricklet_dc_v2.json
|
61
|
+
- lib/tinderfridge/devices/bricklet_distance_us_v2/bricklet_distance_us_v2.json
|
54
62
|
- lib/tinderfridge/devices/bricklet_dmx/bricklet_dmx.json
|
55
63
|
- lib/tinderfridge/devices/bricklet_dmx/bricklet_dmx.rb
|
64
|
+
- lib/tinderfridge/devices/bricklet_e_paper_296x128/bricklet_e_paper_296x128.json
|
65
|
+
- lib/tinderfridge/devices/bricklet_energy_monitor/bricklet_energy_monitor.json
|
56
66
|
- lib/tinderfridge/devices/bricklet_gps_v2/bricklet_gps_v2.json
|
57
67
|
- lib/tinderfridge/devices/bricklet_gps_v2/bricklet_gps_v2.rb
|
68
|
+
- lib/tinderfridge/devices/bricklet_hall_effect_v2/bricklet_hall_effect_v2.json
|
69
|
+
- lib/tinderfridge/devices/bricklet_humidity_v2/bricklet_humidity_v2.json
|
58
70
|
- lib/tinderfridge/devices/bricklet_imu_v3/bricklet_imu_v3.json
|
71
|
+
- lib/tinderfridge/devices/bricklet_industrial_counter/bricklet_industrial_counter.json
|
72
|
+
- lib/tinderfridge/devices/bricklet_industrial_digital_in_4_v2/bricklet_industrial_digital_in_4_v2.json
|
73
|
+
- lib/tinderfridge/devices/bricklet_industrial_digital_out_4_v2/bricklet_industrial_digital_out_4_v2.json
|
59
74
|
- lib/tinderfridge/devices/bricklet_industrial_dual_relay/bricklet_industrial_dual_relay.json
|
60
75
|
- lib/tinderfridge/devices/bricklet_industrial_dual_relay/bricklet_industrial_dual_relay.rb
|
76
|
+
- lib/tinderfridge/devices/bricklet_industrial_ptc/bricklet_industrial_ptc.json
|
77
|
+
- lib/tinderfridge/devices/bricklet_industrial_quad_relay_v2/bricklet_industrial_quad_relay_v2.json
|
61
78
|
- lib/tinderfridge/devices/bricklet_isolator/bricklet_isolator.json
|
62
79
|
- lib/tinderfridge/devices/bricklet_isolator/bricklet_isolator.rb
|
63
80
|
- lib/tinderfridge/devices/bricklet_joystick_v2/bricklet_joystick_v2.json
|
64
81
|
- lib/tinderfridge/devices/bricklet_joystick_v2/bricklet_joystick_v2.rb
|
82
|
+
- lib/tinderfridge/devices/bricklet_laser_range_finder_v2/bricklet_laser_range_finder_v2.json
|
65
83
|
- lib/tinderfridge/devices/bricklet_lcd_128x64/bricklet_lcd_128x64.json
|
66
84
|
- lib/tinderfridge/devices/bricklet_lcd_128x64/bricklet_lcd_128x64.rb
|
67
85
|
- lib/tinderfridge/devices/bricklet_led_strip_v2/bricklet_led_strip_v2.json
|
68
86
|
- lib/tinderfridge/devices/bricklet_led_strip_v2/bricklet_led_strip_v2.rb
|
87
|
+
- lib/tinderfridge/devices/bricklet_linear_poti_v2/bricklet_linear_poti_v2.json
|
69
88
|
- lib/tinderfridge/devices/bricklet_motion_detector_v2/bricklet_motion_detector_v2.json
|
70
89
|
- lib/tinderfridge/devices/bricklet_motion_detector_v2/bricklet_motion_detector_v2.rb
|
71
90
|
- lib/tinderfridge/devices/bricklet_motorized_linear_poti/bricklet_motorized_linear_poti.json
|
@@ -74,9 +93,12 @@ files:
|
|
74
93
|
- lib/tinderfridge/devices/bricklet_multi_touch_v2/bricklet_multi_touch_v2.rb
|
75
94
|
- lib/tinderfridge/devices/bricklet_nfc/bricklet_nfc.json
|
76
95
|
- lib/tinderfridge/devices/bricklet_nfc/bricklet_nfc.rb
|
96
|
+
- lib/tinderfridge/devices/bricklet_oled_128x64_v2/bricklet_oled_128x64_v2.json
|
77
97
|
- lib/tinderfridge/devices/bricklet_outdoor_weather/bricklet_outdoor_weather.json
|
78
98
|
- lib/tinderfridge/devices/bricklet_outdoor_weather/bricklet_outdoor_weather.rb
|
79
99
|
- lib/tinderfridge/devices/bricklet_performance_dc/bricklet_performance_dc.json
|
100
|
+
- lib/tinderfridge/devices/bricklet_piezo_speaker_v2/bricklet_piezo_speaker_v2.json
|
101
|
+
- lib/tinderfridge/devices/bricklet_real_time_clock_v2/bricklet_real_time_clock_v2.json
|
80
102
|
- lib/tinderfridge/devices/bricklet_remote_switch_v2/bricklet_remote_switch_v2.json
|
81
103
|
- lib/tinderfridge/devices/bricklet_remote_switch_v2/bricklet_remote_switch_v2.rb
|
82
104
|
- lib/tinderfridge/devices/bricklet_rgb_led_button/bricklet_rgb_led_button.json
|
@@ -85,11 +107,22 @@ files:
|
|
85
107
|
- lib/tinderfridge/devices/bricklet_rgb_led_v2/bricklet_rgb_led_v2.rb
|
86
108
|
- lib/tinderfridge/devices/bricklet_rotary_encoder_v2/bricklet_rotary_encoder_v2.json
|
87
109
|
- lib/tinderfridge/devices/bricklet_rotary_encoder_v2/bricklet_rotary_encoder_v2.rb
|
110
|
+
- lib/tinderfridge/devices/bricklet_rotary_poti_v2/bricklet_rotary_poti_v2.json
|
111
|
+
- lib/tinderfridge/devices/bricklet_rs232_v2/bricklet_rs232_v2.json
|
112
|
+
- lib/tinderfridge/devices/bricklet_rs485/bricklet_rs485.json
|
88
113
|
- lib/tinderfridge/devices/bricklet_segment_display_4x7_v2/bricklet_segment_display_4x7_v2.json
|
89
114
|
- lib/tinderfridge/devices/bricklet_segment_display_4x7_v2/bricklet_segment_display_4x7_v2.rb
|
90
115
|
- lib/tinderfridge/devices/bricklet_servo_v2/bricklet_servo_v2.json
|
116
|
+
- lib/tinderfridge/devices/bricklet_silent_stepper_v2/bricklet_silent_stepper_v2.json
|
117
|
+
- lib/tinderfridge/devices/bricklet_sound_pressure_level/bricklet_sound_pressure_level.json
|
118
|
+
- lib/tinderfridge/devices/bricklet_temperature_ir_v2/bricklet_temperature_ir_v2.json
|
119
|
+
- lib/tinderfridge/devices/bricklet_temperature_v2/bricklet_temperature_v2.json
|
120
|
+
- lib/tinderfridge/devices/bricklet_thermal_imaging/bricklet_thermal_imaging.json
|
121
|
+
- lib/tinderfridge/devices/bricklet_thermocouple_v2/bricklet_thermocouple_v2.json
|
122
|
+
- lib/tinderfridge/devices/bricklet_uv_light_v2/bricklet_uv_light_v2.json
|
91
123
|
- lib/tinderfridge/devices/bricklet_voltage_current_v2/bricklet_voltage_current_v2.json
|
92
124
|
- lib/tinderfridge/devices/bricklet_voltage_current_v2/bricklet_voltage_current_v2.rb
|
125
|
+
- lib/tinderfridge/devices/bricklet_xmc1400_breakout/bricklet_xmc1400_breakout.json
|
93
126
|
- lib/tinderfridge/ip_connection.rb
|
94
127
|
- lib/tinderfridge/tinkerforge.rb
|
95
128
|
- lib/tinderfridge/version.rb
|
@@ -100,7 +133,7 @@ metadata:
|
|
100
133
|
homepage_uri: https://github.com/lllisteu/tinderfridge
|
101
134
|
changelog_uri: https://github.com/lllisteu/tinderfridge/blob/master/History.md
|
102
135
|
documentation_uri: https://www.rubydoc.info/gems/tinderfridge
|
103
|
-
post_install_message:
|
136
|
+
post_install_message:
|
104
137
|
rdoc_options: []
|
105
138
|
require_paths:
|
106
139
|
- lib
|
@@ -115,8 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
148
|
- !ruby/object:Gem::Version
|
116
149
|
version: '0'
|
117
150
|
requirements: []
|
118
|
-
rubygems_version: 3.1.
|
119
|
-
signing_key:
|
151
|
+
rubygems_version: 3.1.4
|
152
|
+
signing_key:
|
120
153
|
specification_version: 4
|
121
154
|
summary: Extending Tinkerforge in fun and useful ways.
|
122
155
|
test_files: []
|