diff --git a/config.json b/config.json
index 9ba85c5..1355e75 100644
--- a/config.json
+++ b/config.json
@@ -30,6 +30,10 @@
"IDs": {
"Matrix": "@belandbroc:matrix.org"
},
+ "Maps": {
+ "Pickup": true,
+ "Dropoff": true
+ },
"PauseUntil": -62135596800
}
},
@@ -55,5 +59,8 @@
"Username": "noeasyrunstrucking@gmail.com",
"Password": "thumper123"
}
+ },
+ "Maps": {
+ "URIFormat": "https://maps.googleapis.com/maps/api/staticmap?center=%s&markers=label=A|%s&zoom=5&size=250x250&scale=2&format=jpeg&maptype=roadmap&key=AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg"
}
}
\ No newline at end of file
diff --git a/config/config.go b/config/config.go
index 3680e06..c8c8210 100644
--- a/config/config.go
+++ b/config/config.go
@@ -15,6 +15,9 @@ type Config struct {
OK Duration
Error Duration
}
+ Maps struct {
+ URIFormat string
+ }
Clients map[string]Client
Storage []string
Message struct {
@@ -47,6 +50,10 @@ type Client struct {
IDs struct {
Matrix string
}
+ Maps struct {
+ Pickup bool
+ Dropoff bool
+ }
PauseUntil Time
}
diff --git a/testdata/index.html b/testdata/index.html
new file mode 100644
index 0000000..2bce113
--- /dev/null
+++ b/testdata/index.html
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/todo.yaml b/todo.yaml
index 17a87ea..7f9bb10 100644
--- a/todo.yaml
+++ b/todo.yaml
@@ -1,4 +1,13 @@
todo:
+- todo: maps of to+from to get location within state via api
+ details: |
+ curl 'https://maps.googleapis.com/maps/api/staticmap?center=Advance,NC&markers=label=A|Advance,NC&zoom=5&size=250x250&scale=2&format=jpeg&maptype=roadmap&key=AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: image/avif,image/webp,*/*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'DNT: 1' -H 'Alt-Used: maps.googleapis.com' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: image' -H 'Sec-Fetch-Mode: no-cors' -H 'Sec-Fetch-Site: cross-site' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' > whatever.jpg; open whatever.jpg~/Go/src/local/truckstop
+ subtasks:
+ - DONE; yandex; key 9baa3e42-c6e5-4eb5-a891-05ffcede6a25 yandex maps
+ - google; key AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg
+- !help,
+- !states optional but explicit option
+- pause until => !busy until
- change matrix so I test my custom logic even if I dont fetch remote
- warn/err/etc. on clobbering ids.matrix since clients can mess with one another
- modify old items once no longer available; drop stale jobs good candidate but requires new matrix interaction
diff --git a/whatever.jpg b/whatever.jpg
new file mode 100644
index 0000000..ff83fe6
Binary files /dev/null and b/whatever.jpg differ