# Day view of calendar doesn't display any tasks

**URL:** <https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035>\
**Category:** Using farmOS\
**Created:** [January 7, 2022, 3:07pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035 "2022-01-07T15:07:40Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [March 26, 2022, 3:53pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/21 "2022-03-26T15:53:43Z")

</div>

Great, you are getting there so.

The credentials node is not one of the farmOS nodes I created, but I put links in the description of the video for any extra nodes I used.

`npm install node-red-contrib-credentials`

In the video it says farmOS credentials, but that’s just a label you can apply when configuring it.

I haven’t done a video for calendar syncing yet, but I have some examples in GitHub you can import. But I can do a video too.

Edit: actually I’ll do a new calendar flow at some stage this week as the one currently on GitHub doesn’t use my new farmOS nodes.

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [April 22, 2022, 12:49pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/22 "2022-04-22T12:49:59Z")

</div>

@Farmer-Ed Morning! Wanted to touch base and see if you had the chance to provide any further instructions for a calendar syncing option. Also, do I have to keep the Terminal open all the time when running the NodeRed? Sorry for the ignorant questions!

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [April 22, 2022, 3:12pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/23 "2022-04-22T15:12:29Z")

</div>

Good Evening @kyle  
There’s no ignorant questions, so ask away. There could be multiple answers though, it can be run as a background process but how may depend on how are you running node-red at the moment? is it in docker? Sometimes though having it visible in the terminal can help debugging some issues.

I have come across some issues with the Google API nodes that I was using and I’m not really happy with them, they seem to work for a week then have an issue reauthenticating with Google Oauth2, then I need to reinput all credentials and they’ll run for another week. I think there may have been a minor API change effecting refresh token life since some of these nodes were created and as they are community contrib nodes we are some what dependent on the original authors updating them.

I did however spend some time last night reading the current Google Oauth2 and Google Calendar API documentation and have put together a few flows which can do what we need using the standard http request nodes, I’d like to see how they perform over the next week though.

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [April 22, 2022, 3:22pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/24 "2022-04-22T15:22:01Z")

</div>

I’ve a few quick questions for you, which may help me understand what you need, since I’m completely redesigning how my own calendars anyway, now would be a good time to include any features you may need (especially if not too far from my own plans).

Have you explored node-red much yet?  
Were you able to read any farmOS logs with it?

What exactly would you like to achieve? (like all pending logs sent to a calendar, or something more or less?)

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [April 26, 2022, 6:18am UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/25 "2022-04-26T06:18:44Z")

</div>

@kyle I’ve put together a quick how to for getting Google API Credentials.

> **[How to Generate Google API Oauth2 Credentials .](https://farmer-eds-shed.com/how-to-generate-google-api-oauth2-credentials/)**
>
> A quick how to on setting up Google API Credentials, which will be needed in some upcoming projects. Go to and sign in, ignore any offers for free trials as the premium services are not required. C…

I’ve also created a flow for authenticating with Google.

> <https://github.com/Farmer-Eds-Shed/Node-Red-Google-API-Flows/blob/main/Google-Oauth2.json>

First add the node-red-dashboard nodes in manage palette, then use the import option and copy the raw contents of the git hub file to import my flow.

2 nodes need updating with your credentials, Google Oauth2 and Oauth2 Refresh, just double click on them.

This flow does not do anything other than authenticate and return your access tokens. But if you can confirm that you are able to authenticate with both the Google API and farmOS API then we can look at what you want passed between them.

A quirk of different versions of Node-Red for different system environments means URL endpoints might be slightly different, but usually [http://127.0.0.1:1880/](http://127.0.0.1:1880/) or [http://127.0.0.1:1880/endpoint/](http://127.0.0.1:1880/endpoint/)  
So [http://127.0.0.1:188/ui](http://127.0.0.1:188/ui) may need to be changed to [http://127.0.0.1:1880/endpoint/ui](http://127.0.0.1:1880/endpoint/ui)  
and [http://127.0.0.1:1880/Google/oauth2](http://127.0.0.1:1880/Google/oauth2) to [http://127.0.0.1:1880/endpoint/Google/oauth2](http://127.0.0.1:1880/endpoint/Google/oauth2)

Edit:  
I’ve added a post on using the Google API Authentication flow now.

> **[Interacting with Google Calendar using Node-Red.](https://farmer-eds-shed.com/interacting-with-google-calendar-using-node-red/)**
>
> As part of my connected farm project I’ve created some Node-Red flows to authenticate and interact with Google Calendar so that I can automate planning and recording tasks such as field obser…

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 5, 2022, 11:52pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/26 "2022-05-05T23:52:13Z")

</div>

@Farmer-Ed Sorry for the late reply. I’ve been caught up in the spring to-dos on the orchard. I am using scheduled activities in FarmOS to manage the work flow on the orchard. At this point, I am meeting with our team every week and going over tasks (Logs: activities, observations, inputs, etc) that need to happen that week. What I need is a way to put all of these logs onto a calendar so that everyone can easily see them on their calendar. My thought was to have them subscribe to this calendar once I have the information flowing through the Google API. It’s just such an easier way to view the information. Perhaps this is what the FieldKit will do, but I have found it buggy and not syncing. In all honesty, the calendar view in FarmOS 1 worked really well for us. Just trying to find a work around for management and work flow.

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [May 6, 2022, 6:12am UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/27 "2022-05-06T06:12:23Z")

</div>

No Problem @kyle  
Let me know if what I posted so far makes sense. If you can get authentication working for both the farmOS API and Google API then it shouldn’t be too hard to get the next bit working to pass the logs you want from one to the other.

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 6, 2022, 1:56pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/28 "2022-05-06T13:56:01Z")

</div>

@Farmer-Ed So, I’m working on getting the authentication working. However, I can’t seem to find the way to add the redirect URL, Client IDs, etc. Any ideas on what I’ve done wrong?

 ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/d69e46b13e3f720c8679de93169c44ce42900f9b.png)

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 6, 2022, 2:03pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/29 "2022-05-06T14:03:59Z")

</div>

Looks like I missed a step in getting the Google OAuth2 into Node-Red. Let me look into doing this first…

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [May 6, 2022, 2:16pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/30 "2022-05-06T14:16:09Z")

</div>

Yes @kyle, these are fed into the node as payloads, but I think in the next version I release I’ll add the option for exactly what you are thinking.

Anyway I use a credentials node [node-red-contrib-credentials (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-credentials) before the farmOS oauth2 node. It can be installed from the `Manage Palette` option in the Node Red main menu, just go to install and search credentials.

 ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/7bf12c76ed210f8ea0f3137db00eaf7679fa845a.png)

Then connect that node to the flow before oauth2 and click the add button at the bottom and add the necessary fields, which are:

```auto
msg.payload.url
msg.payload.username
msg.payload.password
msg.payload.client_id
msg.payload.client_secret
msg.payload.scope

```

 ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/53af4db2acbd5bf9e4f029446e2b1ea319517f60.png)

Be careful not to have a / at the end of the url.

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [May 6, 2022, 2:19pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/31 "2022-05-06T14:19:15Z")

</div>

I’d concentrate on getting one or other working for the moment, won’t matter which you setup first.

farmOS and Google both use Oauth2 but they are a little different.  
The credentials for Google Oauth2 can be added to the node properties, like you were trying for the farmOS one. Probably the most difficult bit there is setting up your Google developer Account and getting the credentials.

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 31, 2022, 7:37pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/32 "2022-05-31T19:37:56Z")

</div>

@Farmer-Ed How do I find the Client Id, secret and scope for FarmOS? I have them for google, but I don’t know how to get them for FarmOS.

Here is what I’ve accomplished:

1. I have Node-Red running on my computer.
2. I followed your steps for setting up credentials with google.

What I’m unclear on how to proceed is:

1. How to set up the credentials for FarmOS (I don’t know where to find the information mentioned above).
2. How to import the Google Oauth2 into Node Red.

Thanks!

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [May 31, 2022, 8:01pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/33 "2022-05-31T20:01:44Z")

</div>

It may be different on Farmier but by default they are:  
Client ID: farm  
Client secret: client\_secret  
scope: farm\_manager or farm\_worker or farm\_viewer

They can be changed at administration/configuration/web services/consumers there should be a profile named Farm default if you have that access in Farmier?

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 31, 2022, 8:04pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/34 "2022-05-31T20:04:42Z")

</div>

Thanks, I’ll look into this.

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [May 31, 2022, 8:30pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/35 "2022-05-31T20:30:37Z")

</div>

I’m working on a module for Google Calendar too.

> **[GitHub - Farmer-Eds-Shed/farm\_calendar\_events: Google Calendar module for farmOS](https://github.com/Farmer-Eds-Shed/farm_calendar_events)**
>
> Google Calendar module for farmOS . Contribute to Farmer-Eds-Shed/farm\_calendar\_events development by creating an account on GitHub.

@mstenta what would be the requirements to make a module available on Farmier? I assume a [Drupal.org](http://Drupal.org) git repo for a start. Probably needs a little tidying up and further testing too.

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 31, 2022, 8:34pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/36 "2022-05-31T20:34:41Z")

</div>

YES! This looks awesome and exactly what I’m needing. Very cool. Now if I can just figure out how put it all together.

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 31, 2022, 8:37pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/37 "2022-05-31T20:37:20Z")

</div>

Here is what I’m getting now. . .  
 ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/925774895ecfd8b506cbdfe213a4afff85ace5e5.png)

 ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/492b33df6c6f874d1d99e84b04053e0c27e6c0d0.png)

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [May 31, 2022, 8:41pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/38 "2022-05-31T20:41:02Z")

</div>

have you updated the URL to your farmOS instance?  
[http://192.168.1.34](http://192.168.1.34) is the local IP address of my test server

---

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://farmos.discourse.group/u/kyle)\
**Post date:** [May 31, 2022, 8:44pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/39 "2022-05-31T20:44:02Z")

</div>

Yeah, I changed it to  
 ![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/fccd3443ea84bd6f75951f634076acfededc59ab.png)  
and still get the same response.

---

<div class="post-metadata">

**Author:** ![Farmer-Ed](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/farmer-ed/32/662_2.png) [@Farmer-Ed](https://farmos.discourse.group/u/Farmer-Ed)\
**Post date:** [May 31, 2022, 9:01pm UTC](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035/40 "2022-05-31T21:01:48Z")

</div>

remove the timestamp payload from the inject node and add a debug node after the oauth2 node

[Previous page](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035.md?page=1)

[Next page](https://farmos.discourse.group/t/day-view-of-calendar-doesnt-display-any-tasks/1035.md?page=3)
